/* ══════════════════════════════════════════════════
   pro.css — Warm Natural Theme overrides & additions
   Palette: Linen × Forest Green × Amber
══════════════════════════════════════════════════ */

:root {
  --pro-radius: 13px;
  --pro-radius-sm: 7px;
  --pro-shadow: 0 4px 20px rgba(100,70,40,0.12);
  --transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  /* re-alias for any pro.css references */
  --teal:   #2D6A4F;
  --blue:   #5B7FA6;
  --amber:  #C07828;
  --red:    #B5372A;
  --green:  #40916C;
  --purple: #8B6DB3;
}

/* ══════════════════════════════════════════════════
   AUTH PAGE — Warm split
══════════════════════════════════════════════════ */
.auth-body { background: #F2EDE4; margin: 0; padding: 0; min-height: 100vh; display: flex; }
.auth-split { display: flex; width: 100%; min-height: 100vh; }

.auth-brand {
  flex: 0 0 45%;
  background: linear-gradient(150deg, #1B4332 0%, #2D6A4F 50%, #1A3A2A 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 48px;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative; overflow: hidden;
}

/* Warm organic background pattern */
.auth-brand::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(192,120,40,0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(64,145,108,0.12) 0%, transparent 50%);
}

/* Linen texture on auth brand */
.auth-brand::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.auth-brand-inner { position: relative; z-index: 1; max-width: 400px; }
.auth-logo { width: 60px; height: 60px; margin-bottom: 24px; }

/* Override auth logo colors */
.auth-logo rect:first-child { fill: rgba(192,120,40,0.2) !important; }
.auth-logo rect:nth-child(2) { stroke: rgba(192,120,40,0.5) !important; }
.auth-logo path, .auth-logo circle { stroke: #D4A853 !important; }

.auth-brand h1 { font-size: 30px; font-weight: 700; color: #F5EFE0; margin: 0 0 12px; font-family: 'Lora', serif; }
.auth-brand h1 span { color: #D4A853; }
.auth-brand p { color: rgba(245,239,224,0.65); font-size: 15px; line-height: 1.65; margin-bottom: 32px; }

.auth-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.auth-features li { display: flex; align-items: center; gap: 10px; color: rgba(245,239,224,0.80); font-size: 14px; }
.af-icon { font-size: 15px; width: 26px; text-align: center; }

.auth-form-side {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  background: #FAF7F2;
}

.auth-card {
  width: 100%; max-width: 420px;
  background: #FFFFFF;
  border: 1px solid rgba(139,110,72,0.18);
  border-radius: 20px;
  padding: 36px 36px 24px;
  box-shadow: 0 8px 40px rgba(100,70,40,0.12);
}

.auth-tab-row {
  display: flex; gap: 4px;
  background: #F4EFE8;
  border-radius: 10px; padding: 4px; margin-bottom: 28px;
}
.auth-tab {
  flex: 1; padding: 8px; background: none; border: none;
  color: rgba(90,71,51,0.55); font-size: 14px; font-weight: 500;
  border-radius: 7px; cursor: pointer; transition: var(--transition);
  font-family: 'Inter', sans-serif;
}
.auth-tab.active { background: rgba(45,106,79,0.12); color: #1B4332; font-weight: 600; }

.auth-welcome h2 { font-size: 22px; font-weight: 600; color: #1C1410; margin: 0 0 4px; font-family: 'Lora', serif; }
.auth-welcome p  { font-size: 13px; color: #8B7355; margin: 0 0 24px; }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 11.5px; font-weight: 600;
  color: #8B7355; margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.05em;
  font-family: 'Inter', sans-serif;
}
.form-control {
  width: 100%;
  background: #F4EFE8;
  border: 1px solid rgba(139,110,72,0.22);
  border-radius: 9px; padding: 10px 14px;
  color: #1C1410; font-size: 14px;
  transition: var(--transition);
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  outline: none;
}
.form-control:focus {
  outline: none;
  border-color: #2D6A4F;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45,106,79,0.10);
}
.form-control::placeholder { color: rgba(139,110,72,0.45); }
select.form-control option { background: #FAF7F2; }
textarea.form-control { resize: vertical; font-family: 'Inter', sans-serif; }

.input-pw { position: relative; }
.input-pw .form-control { padding-right: 42px; }
.pw-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #B8A492; cursor: pointer; padding: 4px; display: flex; }
.pw-toggle svg { width: 16px; height: 16px; }
.pw-toggle.active { color: #2D6A4F; }

.pw-strength { margin-top: 6px; display: flex; align-items: center; gap: 8px; min-height: 18px; }
.pw-bar { height: 4px; border-radius: 2px; transition: width 0.3s, background 0.3s; }
.pw-strength span { font-size: 11px; color: #8B7355; }

.demo-accounts {
  background: rgba(45,106,79,0.06);
  border: 1px solid rgba(45,106,79,0.15);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 16px;
}
.demo-label { font-size: 11px; color: #8B7355; margin: 0 0 8px; }
.demo-pills { display: flex; gap: 6px; }
.demo-pill {
  padding: 4px 12px; font-size: 12px;
  background: rgba(45,106,79,0.08);
  border: 1px solid rgba(45,106,79,0.20);
  border-radius: 20px; color: #2D6A4F; cursor: pointer; transition: var(--transition);
}
.demo-pill:hover { background: rgba(45,106,79,0.18); }

.btn-full { width: 100%; justify-content: center; padding: 12px; font-size: 15px; margin-bottom: 4px; }
.btn-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth-footer { text-align: center; font-size: 12px; color: #B8A492; margin-top: 16px; }
.auth-footer a { color: #2D6A4F; text-decoration: none; }

/* ══════════════════════════════════════════════════
   SIDEBAR ADDITIONS
══════════════════════════════════════════════════ */
.nav-link.active { background: rgba(45,106,79,0.09) !important; color: #1B4332 !important; border: 1px solid rgba(45,106,79,0.16) !important; }
.nav-link.active .nav-icon svg { stroke: #2D6A4F; }

.logout-btn {
  background: none; border: none; color: #B8A492; cursor: pointer;
  padding: 6px; border-radius: 7px; display: flex; transition: var(--transition);
  margin-left: auto;
}
.logout-btn:hover { color: #B5372A; background: rgba(181,55,42,0.09); }
.logout-btn svg { width: 16px; height: 16px; }
.sidebar-footer { display: flex; align-items: center; }

.mt8 { margin-top: 8px; }

/* ══════════════════════════════════════════════════
   TOPBAR ADDITIONS
══════════════════════════════════════════════════ */
.notif-bell-wrap { position: relative; }
.notif-bell {
  background: #F4EFE8;
  border: 1px solid rgba(139,110,72,0.20);
  border-radius: 10px; padding: 8px 10px;
  color: #8B7355; cursor: pointer;
  display: flex; align-items: center;
  transition: var(--transition); position: relative;
}
.notif-bell:hover { background: #EDE5DA; color: #1C1410; }
.notif-bell svg { width: 17px; height: 17px; }
.notif-dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; background: #B5372A; border-radius: 50%; display: none; border: 1.5px solid #FEFCF9; }

/* ══════════════════════════════════════════════════
   FILTER BAR
══════════════════════════════════════════════════ */
.filter-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-mini { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chip {
  padding: 6px 16px; font-size: 13px; font-weight: 500;
  background: #FFFFFF;
  border: 1px solid rgba(139,110,72,0.18);
  border-radius: 20px; color: #8B7355; cursor: pointer;
  transition: var(--transition);
}
.filter-chip:hover { background: #F4EFE8; color: #1C1410; border-color: rgba(139,110,72,0.30); }
.filter-chip.active { background: rgba(45,106,79,0.10); border-color: rgba(45,106,79,0.28); color: #1B4332; }

/* ══════════════════════════════════════════════════
   SKELETON LOADING — Warm shimmer
══════════════════════════════════════════════════ */
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 24px; }
.skeleton-card {
  height: 180px;
  background: linear-gradient(90deg, #F4EFE8 25%, #EDE5DA 50%, #F4EFE8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  border-radius: var(--pro-radius);
}
.skeleton-row {
  height: 52px;
  background: linear-gradient(90deg, #F4EFE8 25%, #EDE5DA 50%, #F4EFE8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  border-radius: 7px; margin-bottom: 8px;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ══════════════════════════════════════════════════
   TABLE ENHANCEMENTS
══════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th {
  padding: 10px 14px; text-align: left;
  font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.06px; color: #8B7355;
  border-bottom: 1px solid rgba(139,110,72,0.14);
  white-space: nowrap; font-weight: 600;
}
.data-table td { padding: 13px 14px; border-bottom: 1px solid rgba(139,110,72,0.08); color: #1C1410; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: #FAF7F2; }
.table-row-animated { animation: rowIn 0.25s ease both; }
@keyframes rowIn { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:none; } }

.tenant-cell { display: flex; align-items: center; gap: 10px; }
.tenant-cell .av { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; color: #fff; }
.tenant-cell strong { display: block; font-size: 13.5px; color: #1C1410; }
.tenant-cell small  { display: block; font-size: 11.5px; color: #8B7355; }

.empty-cell { text-align: center; padding: 48px 0 !important; color: #B8A492; font-size: 14px; }

.action-row { display: flex; gap: 6px; align-items: center; }
.icon-btn {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  background: #F4EFE8;
  border: 1px solid rgba(139,110,72,0.20);
  border-radius: 7px; color: #8B7355; cursor: pointer;
  transition: var(--transition); padding: 0; text-decoration: none;
}
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn:hover { background: #EDE5DA; color: #1C1410; }
.icon-btn.teal:hover  { background: rgba(45,106,79,0.10); color: #2D6A4F; border-color: rgba(45,106,79,0.25); }
.icon-btn.green:hover { background: rgba(64,145,108,0.10); color: #40916C; border-color: rgba(64,145,108,0.25); }
.icon-btn.red:hover   { background: rgba(181,55,42,0.09);  color: #B5372A; border-color: rgba(181,55,42,0.22); }

.panel-head-count { font-size: 12px; color: #8B7355; font-weight: 400; }

/* ══════════════════════════════════════════════════
   PAGINATION — Warm
══════════════════════════════════════════════════ */
.pagination { padding: 16px 20px; border-top: 1px solid rgba(139,110,72,0.10); }
.pagination-inner { display: flex; align-items: center; gap: 6px; }
.page-btn {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: #FFFFFF; border: 1px solid rgba(139,110,72,0.20);
  border-radius: 7px; color: #5A4733; font-size: 13px; cursor: pointer; transition: var(--transition);
}
.page-btn:hover:not(:disabled) { background: rgba(45,106,79,0.09); color: #2D6A4F; border-color: rgba(45,106,79,0.25); }
.page-btn.active { background: #2D6A4F; color: #fff; border-color: #2D6A4F; font-weight: 700; }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ══════════════════════════════════════════════════
   CHARTS — Warm axis colors
══════════════════════════════════════════════════ */
/* Chart.js ticks and grid will pick up these vars via JS */

/* ══════════════════════════════════════════════════
   QUICK MODULE CARDS — Warm
══════════════════════════════════════════════════ */
.quick-module-card {
  display: flex; align-items: center; gap: 10px;
  background: #FFFFFF;
  border: 1px solid rgba(139,110,72,0.16);
  border-radius: 12px; padding: 16px 18px;
  font-size: 14px; font-weight: 600;
  color: #5A4733; text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 1px 4px rgba(100,70,40,0.07);
}
.quick-module-card:hover {
  background: rgba(45,106,79,0.07);
  border-color: rgba(45,106,79,0.24);
  color: #1B4332;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(100,70,40,0.12);
}

/* ══════════════════════════════════════════════════
   LEASE, DOCUMENT, VERIFICATION PANELS
══════════════════════════════════════════════════ */
.lease-card, .doc-card, .verify-card {
  background: #FFFFFF;
  border: 1px solid rgba(139,110,72,0.16);
  border-radius: 13px;
  padding: 18px 20px;
  transition: all 0.22s;
  box-shadow: 0 1px 4px rgba(100,70,40,0.07);
}
.lease-card:hover, .doc-card:hover, .verify-card:hover {
  border-color: rgba(45,106,79,0.22);
  box-shadow: 0 4px 16px rgba(100,70,40,0.10);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════
   NOTIFICATION ITEMS
══════════════════════════════════════════════════ */
.notif-item {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(139,110,72,0.09);
  transition: background 0.15s;
  cursor: pointer;
}
.notif-item:hover { background: #FAF7F2; }
.notif-item.unread { background: rgba(45,106,79,0.05); border-left: 3px solid #2D6A4F; }
.notif-item .notif-title { font-size: 13.5px; font-weight: 600; color: #1C1410; }
.notif-item .notif-desc  { font-size: 12px; color: #5A4733; margin-top: 2px; }
.notif-item .notif-time  { font-size: 11px; color: #B8A492; margin-top: 4px; }

/* ══════════════════════════════════════════════════
   CHAT / MESSAGES
══════════════════════════════════════════════════ */
.chat-bubble {
  background: #FFFFFF;
  border: 1px solid rgba(139,110,72,0.16);
  border-radius: 14px 14px 14px 4px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: #1C1410;
  max-width: 70%;
  box-shadow: 0 1px 3px rgba(100,70,40,0.07);
}
.chat-bubble.own {
  background: #2D6A4F;
  color: #fff;
  border-color: #2D6A4F;
  border-radius: 14px 14px 4px 14px;
  margin-left: auto;
}

/* ══════════════════════════════════════════════════
   ANALYTICS PAGE
══════════════════════════════════════════════════ */
.analytics-kpi {
  background: #FFFFFF;
  border: 1px solid rgba(139,110,72,0.15);
  border-radius: 13px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(100,70,40,0.07);
  transition: all 0.2s;
}
.analytics-kpi:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(100,70,40,0.10); }

/* ══════════════════════════════════════════════════
   BADGE OVERRIDES
══════════════════════════════════════════════════ */
.badge-green  { background: rgba(64,145,108,0.12); color: #2D6A4F; border: 1px solid rgba(64,145,108,0.2); border-radius: 20px; padding: 2px 8px; font-size: 11px; font-weight: 600; }
.badge-red    { background: rgba(181,55,42,0.09);  color: #B5372A; border: 1px solid rgba(181,55,42,0.18); border-radius: 20px; padding: 2px 8px; font-size: 11px; font-weight: 600; }
.badge-amber  { background: rgba(192,120,40,0.10); color: #9A6120; border: 1px solid rgba(192,120,40,0.20); border-radius: 20px; padding: 2px 8px; font-size: 11px; font-weight: 600; }
.badge-blue   { background: rgba(91,127,166,0.10); color: #4A6E93; border: 1px solid rgba(91,127,166,0.20); border-radius: 20px; padding: 2px 8px; font-size: 11px; font-weight: 600; }

/* ══════════════════════════════════════════════════
   CHART OVERRIDES via CSS (Chart.js will use these)
══════════════════════════════════════════════════ */
.chart-wrap canvas { border-radius: 8px; }

/* ══════════════════════════════════════════════════
   MOBILE RESPONSIVE ADDITIONS
══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .auth-split { flex-direction: column; }
  .auth-brand { flex: none; padding: 40px 32px; }
  .auth-card  { padding: 24px 20px; }
}
