/* ============================================================
   styles.css — Bahir Group LLC
   Shared styles for all public and protected pages
   ============================================================ */

:root {
  /* Brand — Indigo primary (DoorLoop-inspired), Gold accent */
  --navy:    #2E3A8C;
  --navy-dk: #1E2B6F;
  --navy-md: #3D4EA8;
  --gold:    #e8a020;
  --gold-lt: #fef3c7;
  --light:   #f8fafc;
  --white:   #ffffff;
  --border:  #e2e8f0;
  --text:    #0f172a;
  --muted:   #64748b;
  --subtle:  #94a3b8;
  --red:     #dc2626;
  --green:   #059669;
  --radius:  12px;
  --radius-lg: 20px;
  --shadow:  0 2px 16px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--light);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#main-nav {
  background: var(--navy-dk);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 38px;
  height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(232,160,32,0.25);
}

.brand-name { color: white; font-weight: 700; font-size: 15px; line-height: 1.2; }
.brand-sub  { color: rgba(255,255,255,0.4); font-size: 11px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.15s;
}
.nav-link:hover,
.nav-link.active {
  color: white;
  background: rgba(255,255,255,0.1);
}

.btn-login {
  margin-left: 8px;
  padding: 8px 18px;
  background: var(--gold);
  color: white;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  transition: opacity 0.15s;
}
.btn-login:hover { opacity: 0.88; }

.btn-logout {
  margin-left: 8px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.15s;
}
.btn-logout:hover { background: rgba(255,255,255,0.18); color: white; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  padding: 13px 30px;
  background: linear-gradient(135deg, #e8a020 0%, #d4891a 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 14px rgba(232,160,32,0.35);
  letter-spacing: 0.01em;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,160,32,0.45); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-block;
  padding: 13px 30px;
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.15s;
  cursor: pointer;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: white; }

.btn-outline-dark {
  display: inline-block;
  padding: 13px 30px;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.15s;
  cursor: pointer;
}
.btn-outline-dark:hover { background: var(--navy); color: white; }

.btn-outline-light {
  display: inline-block;
  padding: 13px 30px;
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.15s;
  cursor: pointer;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.15); border-color: white; }

.btn-gold {
  display: inline-block;
  padding: 13px 30px;
  background: linear-gradient(135deg, #e8a020 0%, #d4891a 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(232,160,32,0.35);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,160,32,0.45); }

.btn-white {
  display: inline-block;
  padding: 13px 30px;
  background: white;
  color: var(--navy);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.15s;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

.btn-full { width: 100%; display: block; text-align: center; }

.btn-text {
  background: none;
  border: none;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  padding: 2px 6px;
  cursor: pointer;
  text-decoration: underline;
}
.btn-text:hover { color: var(--gold); }

/* ============================================================
   HERO — DoorLoop-inspired full-bleed indigo
   ============================================================ */
.hero {
  background: var(--navy-dk);
  color: white;
  padding: 100px 24px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(61,78,168,0.6) 0%, transparent 70%),
    radial-gradient(ellipse at 80% 80%, rgba(232,160,32,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(232,160,32,0.18);
  color: var(--gold);
  border: 1px solid rgba(232,160,32,0.3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero-title span { color: var(--gold); }

.hero-sub {
  font-size: 18px;
  opacity: 0.75;
  margin-bottom: 36px;
  line-height: 1.65;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }

/* Trust bar */
.hero-trust {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.trust-item { text-align: center; }
.trust-value { font-size: 28px; font-weight: 800; color: white; line-height: 1; }
.trust-label { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ============================================================
   PAGE HEADER (public pages)
   ============================================================ */
.page-header {
  background: var(--navy-dk);
  color: white;
  padding: 56px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% -20%, rgba(61,78,168,0.5) 0%, transparent 70%);
  pointer-events: none;
}
.page-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
  letter-spacing: -0.01em;
}
.page-sub { font-size: 16px; opacity: 0.65; position: relative; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 80px 0; }

.section-alt {
  background: #f4f6fb;
  padding: 80px 0;
}

.section-navy {
  background: var(--navy-dk);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.section-navy::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(61,78,168,0.4) 0%, transparent 70%);
  pointer-events: none;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-title.light { color: white; }

.section-sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 520px;
}
.text-center .section-sub { margin-left: auto; margin-right: auto; }
.section-sub.light { color: rgba(255,255,255,0.65); }

.section-cta { text-align: center; margin-top: 40px; }
.text-center { text-align: center; }

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   PROPERTY GRID & CARDS
   ============================================================ */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.property-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: 1px solid rgba(226,232,240,0.8);
  display: flex;
  flex-direction: column;
}

.property-header {
  padding: 16px 20px 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.property-type-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 20px;
}

.property-body { padding: 16px 20px; flex: 1; }
.property-address { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.property-city    { font-size: 13px; color: var(--muted); margin-bottom: 14px; }

.property-details {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: #475569;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.property-rent {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}
.property-rent span { font-size: 14px; font-weight: 400; color: var(--muted); }

.property-notes {
  font-size: 12px;
  color: var(--subtle);
  line-height: 1.5;
}

.property-notes-box {
  font-size: 12px;
  color: #475569;
  line-height: 1.6;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 10px;
}

.property-footer {
  padding: 16px 20px;
  border-top: 1px solid #f1f5f9;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge.available,
.badge-available { background: #d1fae5; color: #065f46; }

.badge.occupied,
.badge-occupied  { background: #fee2e2; color: #991b1b; }

.badge.paid,
.badge-paid      { background: #d1fae5; color: #065f46; }

.badge.unpaid,
.badge-unpaid    { background: #fee2e2; color: var(--red); }

.badge.open,
.badge-open      { background: #fee2e2; color: var(--red); }

.badge.in-progress,
.badge-progress  { background: #dbeafe; color: #1d4ed8; }

.badge.resolved,
.badge-resolved  { background: #d1fae5; color: var(--green); }

.badge.priority-high      { background: #fee2e2; color: var(--red); }
.badge.priority-emergency { background: #7f1d1d; color: white; }
.badge.priority-medium    { background: #fef3c7; color: #92400e; }
.badge.priority-low       { background: #f1f5f9; color: var(--muted); }

/* ============================================================
   INFO CARDS (features / why section) — DoorLoop style
   ============================================================ */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.info-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  text-align: left;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.info-card:hover {
  box-shadow: 0 12px 36px rgba(46,58,140,0.12);
  transform: translateY(-3px);
  border-color: rgba(46,58,140,0.2);
}

.info-icon {
  width: 52px; height: 52px;
  background: rgba(46,58,140,0.08);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}

.info-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.info-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 40px 24px;
  color: var(--muted);
  font-size: 15px;
}
.empty-state a { color: var(--navy); text-decoration: underline; }

.empty-msg {
  color: var(--muted);
  font-size: 14px;
  padding: 20px 0;
}

.empty-cell {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 24px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: white;
  padding: 32px 24px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand { font-weight: 700; font-size: 15px; }
.footer-sub   { font-size: 12px; opacity: 0.5; margin-top: 2px; }

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}
.footer-links a:hover { color: white; }

.footer-contact a {
  font-size: 14px;
  color: var(--gold);
  transition: opacity 0.15s;
}
.footer-contact a:hover { opacity: 0.8; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2,
.contact-form-wrap h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}
.contact-info p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.contact-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.contact-icon {
  font-size: 20px;
  width: 40px;
  height: 40px;
  background: #eff6ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-label { font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-email { font-size: 15px; font-weight: 700; color: var(--navy); display: block; }
.contact-email:hover { color: var(--gold); }
.contact-desc  { font-size: 13px; color: var(--muted); margin-top: 4px; }

.contact-location {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.contact-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.form-success {
  background: #d1fae5;
  color: #065f46;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 16px;
}

.form-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* ============================================================
   FORM STYLES
   ============================================================ */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: white;
  outline: none;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy); }

textarea { resize: vertical; min-height: 80px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-full  { grid-column: 1 / -1; }

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page { background: #f1f5f9; }

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  min-height: calc(100vh - 66px - 96px);
}

.login-card {
  background: white;
  border-radius: 18px;
  padding: 44px 40px;
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.09);
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

.login-logo-circle {
  width: 52px;
  height: 52px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(232,160,32,0.2);
}

.login-brand     { font-weight: 800; font-size: 16px; line-height: 1.2; }
.login-brand-sub { font-size: 12px; color: var(--muted); }

.login-title { font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 6px; }
.login-sub   { font-size: 14px; color: var(--muted); text-align: center; margin-bottom: 28px; }

.login-form { margin-bottom: 16px; }

.login-error {
  background: #fee2e2;
  color: var(--red);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

.login-disclaimer {
  font-size: 12px;
  color: var(--subtle);
  text-align: center;
  line-height: 1.5;
  margin-top: 20px;
}
.login-disclaimer a { color: var(--navy); }

/* ============================================================
   APP BODY & LAYOUT (protected pages)
   ============================================================ */
.app-body { background: #f1f5f9; }

.app-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px;
  flex: 1;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.app-title { font-size: 26px; font-weight: 800; color: var(--text); }
.app-sub   { font-size: 14px; color: var(--muted); margin-top: 3px; }
.header-meta { font-size: 14px; color: var(--muted); }

/* ============================================================
   CARDS (protected pages)
   ============================================================ */
.card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.card-title  { font-size: 16px; font-weight: 700; color: var(--text); }
.card-action { font-size: 13px; color: var(--navy); font-weight: 600; }
.card-action:hover { color: var(--gold); }

/* ============================================================
   STAT GRID
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 22px 20px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-icon  { font-size: 22px; }
.stat-value { font-size: 32px; font-weight: 800; line-height: 1; }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 500; }

.stat-navy  { border-left: 4px solid var(--navy); }
.stat-green { border-left: 4px solid var(--green); }
.stat-gold  { border-left: 4px solid var(--gold); }
.stat-red   { border-left: 4px solid var(--red); }
.stat-gray  { border-left: 4px solid var(--subtle); }

/* ============================================================
   TWO-COLUMN
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* ============================================================
   SUMMARY ROWS
   ============================================================ */
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.summary-row:last-child { border-bottom: none; }

.summary-info  { flex: 1; }
.summary-name  { font-size: 14px; font-weight: 600; color: var(--text); }
.summary-meta  { font-size: 12px; color: var(--muted); margin-top: 2px; }
.summary-tenant { font-size: 12px; color: #475569; margin-top: 2px; }
.summary-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.summary-rent  { font-size: 13px; font-weight: 600; color: var(--navy); }

/* ============================================================
   EVENT ROWS
   ============================================================ */
.event-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.event-row:last-child { border-bottom: none; }

.event-title  { font-size: 14px; font-weight: 600; color: var(--text); }
.event-date   { font-size: 12px; color: var(--muted); margin-top: 2px; }
.event-days   { font-size: 13px; font-weight: 700; color: var(--muted); background: #f1f5f9; padding: 4px 10px; border-radius: 20px; }

.event-urgent .event-days { background: #fee2e2; color: var(--red); }
.event-soon   .event-days { background: #fef3c7; color: #92400e; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead tr { background: #f8fafc; }

.data-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafbfc; }

.amount-cell { font-weight: 600; }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  background: white;
  cursor: pointer;
}

/* ============================================================
   TENANT DETAIL PAGE
   ============================================================ */
.tenant-card { padding: 28px; }

.detail-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #f1f5f9;
}
.detail-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.detail-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.detail-value { font-size: 15px; font-weight: 600; color: var(--text); }

.detail-notes {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
}

.days-left {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.lease-warning {
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 20px;
}

.warning-red   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.warning-amber { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

.lease-urgent .detail-value { color: var(--red); }

.notice-card { border: 1px solid #fde68a; background: #fffbeb; }

/* ============================================================
   MAINTENANCE PAGE
   ============================================================ */
.req-title { font-size: 13px; font-weight: 600; color: var(--text); }
.req-desc  { font-size: 12px; color: var(--muted); margin-top: 2px; }
.muted     { color: var(--muted); }

/* ============================================================
   VENDOR PAGE
   ============================================================ */
.vendor-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
  gap: 16px;
  flex-wrap: wrap;
}
.vendor-row:last-child { border-bottom: none; }

.vendor-name      { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.vendor-category  { font-size: 12px; color: var(--muted); }
.vendor-contact   { font-size: 13px; color: #475569; margin-top: 4px; }

.vendor-contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vendor-phone,
.vendor-email { font-size: 13px; color: var(--navy); }
.vendor-phone:hover,
.vendor-email:hover { color: var(--gold); }

.vendor-address { font-size: 13px; color: var(--muted); }
.vendor-rating  { font-size: 16px; white-space: nowrap; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.modal-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title { font-size: 17px; font-weight: 700; }
.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--subtle);
  line-height: 1;
  padding: 4px;
}
.modal-close:hover { color: var(--text); }

.modal-form { display: flex; flex-direction: column; gap: 0; }

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ============================================================
   HAMBURGER NAV
   ============================================================ */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.2s;
}

/* ============================================================
   MODERN POLISH
   ============================================================ */

/* Nav — glassmorphism blur */
#main-nav {
  background: rgba(30, 43, 111, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Stat cards — accent gradient bar + lift on hover */
.stat-card {
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 12px 12px 0 0;
  opacity: 0.6;
}
.stat-navy::after  { background: var(--navy); }
.stat-green::after { background: var(--green); }
.stat-gold::after  { background: var(--gold); }
.stat-red::after   { background: var(--red); }
.stat-gray::after  { background: var(--subtle); }
.stat-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.11); transform: translateY(-2px); }

/* Property cards — lift + shadow on hover */
.property-card {
  transition: box-shadow 0.22s, transform 0.22s;
}
.property-card:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.14);
  transform: translateY(-3px);
}

/* Info cards — lift + gold left border on hover */
.info-card {
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.info-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  border-color: var(--gold);
}

/* Cards — subtle lift */
.card {
  transition: box-shadow 0.2s;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

/* Buttons — gradient shimmer on primary */
.btn-primary, .btn-gold {
  background: linear-gradient(135deg, #e8a020 0%, #d4891a 100%);
  box-shadow: 0 2px 8px rgba(232,160,32,0.3);
  transition: opacity 0.15s, box-shadow 0.15s, transform 0.1s;
}
.btn-primary:hover, .btn-gold:hover {
  opacity: 1;
  box-shadow: 0 4px 16px rgba(232,160,32,0.4);
  transform: translateY(-1px);
}
.btn-primary:active, .btn-gold:active { transform: translateY(0); }

/* Input focus — navy ring */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}

/* Login card — stronger shadow */
.login-card {
  box-shadow: 0 16px 64px rgba(0,0,0,0.12);
}

/* Table rows — smooth highlight */
.data-table tr:hover td {
  background: #f8f9ff;
  transition: background 0.1s;
}

/* Section title — subtle underline accent */
.section-title {
  position: relative;
  padding-bottom: 12px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.text-center .section-title::after { left: 50%; transform: translateX(-50%); }

/* Badge closed */
.badge.closed { background: #d1fae5; color: #065f46; }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* App body — subtle pattern */
.app-body {
  background: #f0f4f8;
  background-image: radial-gradient(circle at 1px 1px, #e2e8f0 1px, transparent 0);
  background-size: 24px 24px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  /* Nav — hamburger */
  .nav-hamburger { display: flex; }
  .nav-inner { position: relative; flex-wrap: wrap; }
  .nav-links {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--navy-dk);
    flex-direction: column;
    padding: 12px 16px 16px;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 200;
  }
  .nav-links.mobile-open { display: flex; }
  .nav-link { padding: 10px 12px; width: 100%; }
  .btn-login, .btn-logout { margin-left: 0; width: 100%; text-align: center; margin-top: 4px; }

  /* Layout */
  .hero { padding: 64px 20px 56px; }
  .hero-title  { font-size: 34px; letter-spacing: -0.01em; }
  .hero-sub    { font-size: 16px; }
  .hero-trust  { gap: 20px; }
  .trust-value { font-size: 22px; }
  .page-title  { font-size: 26px; }
  .section     { padding: 56px 0; }
  .section-alt { padding: 56px 0; }
  .section-navy{ padding: 56px 0; }
  .section-title { font-size: 24px; }

  /* Grids */
  .property-grid { grid-template-columns: 1fr; }
  .two-col       { grid-template-columns: 1fr; }
  .info-cards    { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }
  .form-grid     { grid-template-columns: 1fr; }
  .stat-grid     { grid-template-columns: 1fr 1fr; }
  .detail-grid   { grid-template-columns: 1fr; }

  /* App */
  .app-layout  { padding: 20px 16px; }
  .app-header  { flex-direction: column; align-items: flex-start; }
  .app-title   { font-size: 22px; }
  .card        { padding: 16px; }

  /* Tables */
  .data-table th, .data-table td { padding: 10px 10px; font-size: 12px; }

  /* Modals */
  .modal-backdrop { padding: 12px; align-items: flex-end; }
  .modal-card     { border-radius: 16px 16px 0 0; max-height: 92vh; padding: 20px 16px; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  /* Login */
  .login-card { padding: 28px 20px; }
}
