/* ============================================================
   Gruvora Living — Admin Console CSS
   Theme-matched to gruvora.com: Plus Jakarta Sans, #FF385C brand,
   #F7F7F7 background, #FFFFFF cards, #222222 text, subtle shadows.
   Sidebar: WHITE (like user-dashboard.css), NOT dark.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ─── Design Tokens (exact match to styles.css + auth.css) ──────────────── */
:root {
  /* Brand */
  --brand:        #FF385C;
  --brand-hover:  #E31C5F;
  --brand-light:  #FFF0F3;
  --brand-glow:   rgba(255, 56, 92, 0.12);
  --brand-border: rgba(255, 56, 92, 0.20);

  /* Text (exact from styles.css) */
  --text-dark:    #222222;
  --text-medium:  #717171;
  --text-light:   #B0B0B0;

  /* Backgrounds (exact from styles.css) */
  --bg:           #FFFFFF;
  --bg-gray:      #F7F7F7;
  --bg-hover:     #EBEBEB;

  /* Borders (exact from styles.css) */
  --border:       #DDDDDD;
  --border-light: #EBEBEB;

  /* Shadows (exact from styles.css) */
  --shadow-sm:    0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md:    0 6px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg:    0 14px 28px rgba(0, 0, 0, 0.12), 0 10px 10px rgba(0, 0, 0, 0.08);

  /* Radius (exact from styles.css) */
  --radius:       32px;
  --radius-sm:    12px;
  --radius-md:    16px;
  --radius-xs:    8px;
  --radius-pill:  999px;

  /* Font (exact from styles.css) */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Transition (exact from styles.css) */
  --transition: 0.2s cubic-bezier(0.2, 0, 0, 1);

  /* Sidebar (white, like user-dashboard.css) */
  --sidebar-w:    280px;
  --sidebar-bg:   #FFFFFF;

  /* Status colors */
  --success:      #047857;
  --success-bg:   #ECFDF5;
  --success-b:    #A7F3D0;
  --warning:      #B45309;
  --warning-bg:   #FFFBEB;
  --warning-b:    #FDE68A;
  --danger:       #B91C1C;
  --danger-bg:    #FFF1F2;
  --danger-b:     #FECDD3;
  --info:         #1D4ED8;
  --info-bg:      #EFF6FF;
  --info-b:       #BFDBFE;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dark);
  background: var(--bg-gray);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }


/* ─── LOGIN SCREEN ───────────────────────────────────────────────────────── */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gray);
  padding: 32px 16px;
}

.login-card-wrap {
  width: 100%;
  max-width: 460px;
}

/* Brand header above login card */
.login-brand {
  text-align: center;
  margin-bottom: 24px;
}
.login-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.login-brand-logo svg { color: var(--brand); }
.login-brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.5px;
}
.login-brand-tag {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-medium);
  font-weight: 500;
}

/* Login form card */
.login-form-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 36px 32px;
  animation: gvFadeUp 0.35s ease;
}
@keyframes gvFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 6px;
}
.login-form-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.login-sub {
  font-size: 14px;
  color: var(--text-medium);
  margin-bottom: 28px;
  line-height: 1.55;
}

/* Security note inside login */
.login-security-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-xs);
  background: var(--brand-light);
  border: 1px solid var(--brand-border);
}
.login-security-note strong {
  display: block;
  font-size: 13px;
  color: var(--text-dark);
  margin-bottom: 3px;
}
.login-security-note span {
  font-size: 12px;
  color: var(--text-medium);
}

/* ─── FORM FIELDS ────────────────────────────────────────────────────────── */
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}
.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  color: var(--text-dark);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--text-dark);
  border-width: 2px;
  padding: 11px 13px;
  box-shadow: none;
}
.field textarea { min-height: 80px; resize: vertical; }

/* Error */
.error-box {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-b);
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}

/* Login button */
.btn-primary {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background var(--transition);
  cursor: pointer;
}
.btn-primary:hover:not(:disabled) { background: var(--brand-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

/* ─── APP SHELL ──────────────────────────────────────────────────────────── */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ─── SIDEBAR (White — matches user-dashboard.css exactly) ───────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
  box-shadow: var(--shadow-sm);
}

/* Sidebar top / logo */
.sidebar-top {
  padding: 20px 24px 18px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.sidebar-logo-icon {
  display: flex;
  align-items: center;
}
.sidebar-logo-icon svg { color: var(--brand); }
.sidebar-logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.4px;
}
.sidebar-badge {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--brand-light);
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--brand-border);
}

/* Sidebar nav */
.sidebar-section {
  padding: 12px 12px 8px;
  flex: 1;
}
.sidebar-section-label {
  padding: 4px 10px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* Nav item — matches .nav-item in user-dashboard.css */
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-xs);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  border: none;
  background: transparent;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  text-decoration: none;
  position: relative;
}
.nav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-medium);
  transition: color var(--transition);
}
.nav-item:hover {
  background: var(--bg-gray);
}
/* Active state — matches .nav-item.active in user-dashboard.css */
.nav-item.active {
  background: #FFF0F2;
  color: var(--brand);
}
.nav-item.active svg {
  color: var(--brand);
}

/* Notification badge on nav */
.nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sidebar bottom — admin info + logout */
.sidebar-bottom {
  padding: 14px 12px;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}
.admin-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  background: var(--bg-gray);
  border: 1px solid var(--border-light);
  margin-bottom: 10px;
}
.admin-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.admin-info-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}
.admin-info-text span {
  font-size: 11.5px;
  color: var(--text-medium);
}

/* Logout button — matches .btn-logout in user-dashboard.css */
.logout-btn {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg);
  color: var(--text-dark);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition), border-color var(--transition);
  cursor: pointer;
}
.logout-btn:hover {
  background: var(--bg-gray);
  border-color: var(--text-dark);
}
.logout-btn svg { width: 15px; height: 15px; color: var(--text-medium); }

/* ─── MAIN CONTENT ───────────────────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ─── TOPBAR ─────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(247, 247, 247, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-breadcrumb {
  font-size: 14px;
  color: var(--text-medium);
  font-weight: 500;
  flex: 1;
}
.topbar-breadcrumb strong { color: var(--text-dark); font-weight: 700; }

/* Search — matches site search style */
.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  width: 240px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), width var(--transition), border-color var(--transition);
}
.topbar-search:focus-within {
  border-color: var(--text-dark);
  width: 300px;
  box-shadow: var(--shadow-md);
}
.topbar-search svg { color: var(--text-medium); width: 15px; height: 15px; flex-shrink: 0; }
.topbar-search input {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  color: var(--text-dark);
  outline: none;
  width: 100%;
}

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-medium);
  position: relative;
  transition: box-shadow var(--transition), color var(--transition);
  cursor: pointer;
}
.topbar-btn:hover { box-shadow: var(--shadow-md); color: var(--text-dark); }
.topbar-btn svg { width: 16px; height: 16px; }
.topbar-notif-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  background: var(--brand);
  border-radius: 50%;
  border: 1.5px solid var(--bg-gray);
}

.topbar-view-site {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.topbar-view-site:hover { box-shadow: var(--shadow-md); }
.topbar-view-site svg { width: 14px; height: 14px; color: var(--text-medium); }

/* ─── PAGE CONTENT ───────────────────────────────────────────────────────── */
.page-content { padding: 32px 32px 56px; flex: 1; }

/* Module sections */
.module-section { display: none; }
.module-section.active { display: block; }

/* Page header */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.page-header-text .page-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 4px;
}
.page-header-text h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.page-header-text p { color: var(--text-medium); font-size: 14px; }
.page-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ─── STAT CARDS ─────────────────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  background: var(--brand-light);
  border: 1px solid var(--brand-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.stat-card-icon svg { width: 18px; height: 18px; color: var(--brand); }
.stat-card.success .stat-card-icon { background: var(--success-bg); border-color: var(--success-b); }
.stat-card.success .stat-card-icon svg { color: var(--success); }
.stat-card.warning .stat-card-icon { background: var(--warning-bg); border-color: var(--warning-b); }
.stat-card.warning .stat-card-icon svg { color: var(--warning); }
.stat-card.info    .stat-card-icon { background: var(--info-bg);    border-color: var(--info-b); }
.stat-card.info    .stat-card-icon svg { color: var(--info); }

.stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-delta {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 3px;
}

/* ─── CARDS ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--border-light);
}
.card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}
.card-header p { font-size: 13px; color: var(--text-medium); margin-top: 2px; }
.card-body { padding: 20px; }
.card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ─── DATA TABLES ────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.data-table thead th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-medium);
  background: var(--bg-gray);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg-gray); }
.data-table tbody td {
  padding: 13px 16px;
  color: var(--text-dark);
  vertical-align: middle;
}
.data-table tbody td strong { font-weight: 600; }
.data-table tbody td .sub { font-size: 12px; color: var(--text-medium); margin-top: 2px; }

/* ─── BADGES ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}
.badge.success { background: var(--success-bg); color: var(--success); border-color: var(--success-b); }
.badge.warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-b); }
.badge.danger  { background: var(--danger-bg);  color: var(--danger);  border-color: var(--danger-b); }
.badge.info    { background: var(--info-bg);    color: var(--info);    border-color: var(--info-b); }
.badge.neutral { background: var(--bg-gray);    color: var(--text-medium); border-color: var(--border); }

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn svg { width: 14px; height: 14px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Brand — matches .btn-primary on website */
.btn-brand {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-brand:hover:not(:disabled) {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}

/* Outline — matches .become-host */
.btn-outline {
  background: var(--bg);
  color: var(--text-dark);
  border-color: var(--border);
}
.btn-outline:hover:not(:disabled) { box-shadow: var(--shadow-md); }

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-medium);
  border-color: transparent;
  padding: 7px 12px;
}
.btn-ghost:hover:not(:disabled) { background: var(--bg-gray); color: var(--text-dark); }

/* Status buttons */
.btn-success { background: var(--success-bg); color: var(--success); border-color: var(--success-b); }
.btn-success:hover:not(:disabled) { background: #D1FAE5; }
.btn-danger  { background: var(--danger-bg);  color: var(--danger);  border-color: var(--danger-b); }
.btn-danger:hover:not(:disabled)  { background: #FFE4E6; }
.btn-warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-b); }
.btn-warning:hover:not(:disabled) { background: #FEF3C7; }

/* Small */
.btn-sm { padding: 5px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-sm svg { width: 12px; height: 12px; }

/* ─── GRID LAYOUTS ───────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gap-20 { gap: 20px; }

/* ─── MODULE OVERVIEW GRID ───────────────────────────────────────────────── */
.module-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.module-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.module-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.module-card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  background: var(--brand-light);
  border: 1px solid var(--brand-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.module-card-icon svg { width: 18px; height: 18px; color: var(--brand); }
.module-card h4 { font-size: 13.5px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.module-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.module-card ul li {
  font-size: 12px;
  color: var(--text-medium);
  padding-left: 10px;
  position: relative;
}
.module-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-size: 10px;
}

/* ─── FILTER BAR ─────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
/* Filter pills — match website's tab style */
.filter-btn {
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-medium);
  transition: all var(--transition);
  cursor: pointer;
}
.filter-btn:hover { border-color: var(--text-dark); color: var(--text-dark); }
.filter-btn.active { background: var(--text-dark); color: #fff; border-color: var(--text-dark); }

.filter-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  width: 210px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.filter-search:focus-within { border-color: var(--text-dark); box-shadow: var(--shadow-sm); }
.filter-search svg { color: var(--text-medium); width: 14px; height: 14px; flex-shrink: 0; }
.filter-search input {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--text-dark);
  outline: none;
  width: 100%;
}

/* ─── EMPTY STATE ────────────────────────────────────────────────────────── */
.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-medium);
}
.empty-state svg { width: 44px; height: 44px; opacity: 0.25; margin: 0 auto 14px; color: var(--text-medium); }
.empty-state h4 { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.empty-state p { font-size: 13.5px; }

/* ─── LOADING SKELETON ───────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, #e8ecf0 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-xs);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ─── CHART ──────────────────────────────────────────────────────────────── */
.chart-bar-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 160px;
  padding: 0 4px;
}
.chart-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}
.chart-bar {
  width: 100%;
  max-width: 36px;
  border-radius: 6px 6px 0 0;
  background: var(--brand);
  min-height: 4px;
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.85;
}
.chart-bar:hover { opacity: 1; }
.chart-bar-label {
  font-size: 10px;
  color: var(--text-medium);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

/* ─── SETTINGS FORM ──────────────────────────────────────────────────────── */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.settings-field { display: grid; gap: 7px; }
.settings-field.full { grid-column: 1 / -1; }
.settings-field label { font-size: 12.5px; font-weight: 600; color: var(--text-dark); }
.settings-field input,
.settings-field select,
.settings-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition);
}
.settings-field input:focus,
.settings-field select:focus,
.settings-field textarea:focus {
  border-color: var(--text-dark);
  border-width: 2px;
  padding: 10px 12px;
}
.settings-field textarea { min-height: 80px; resize: vertical; }

/* ─── TOAST ──────────────────────────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  background: var(--text-dark);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 360px;
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
#toast.show { transform: translateY(0); opacity: 1; }
#toast.success { background: var(--success); }
#toast.error   { background: var(--danger); }
#toast.warning { background: var(--warning); }
#toast svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ─── ANIMATIONS ─────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-up { animation: fadeUp 0.35s ease both; }
.animate-in { animation: fadeIn 0.25s ease both; }

/* ─── SCROLLBAR ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-280px);
    transition: transform var(--transition);
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .page-content { padding: 20px 16px 48px; }
}
@media (max-width: 700px) {
  .stat-grid { grid-template-columns: 1fr; }
  .module-overview-grid { grid-template-columns: 1fr; }
  .grid-2, .settings-grid { grid-template-columns: 1fr; }
  .login-form-card { padding: 24px 20px; }
}

/* ─── MODALS ─────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-overlay.show { display: flex; }
.modal-overlay .modal {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  max-width: 90%;
  width: 100%;
  animation: gvFadeUp 0.3s ease forwards;
}
.modal h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-dark);
}