/* ═══════════════════════════════════════════ RESET & BASE ══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #00040d;
  --bg-2:        #050b18;
  --bg-3:        #081020;
  --surface:     #0c1628;
  --surface-2:   #111e34;
  --surface-3:   #172540;

  --accent:      #00e5a0;
  --accent-dim:  rgba(0, 229, 160, 0.10);
  --accent-glow: rgba(0, 229, 160, 0.35);
  --accent-dark: #00b37d;

  --blue:        #3b82f6;
  --blue-dim:    rgba(59,130,246,0.13);
  --purple:      #a855f7;
  --purple-dim:  rgba(168,85,247,0.13);
  --orange:      #f97316;
  --orange-dim:  rgba(249,115,22,0.13);
  --red:         #ef4444;
  --red-dim:     rgba(239,68,68,0.13);
  --yellow:      #eab308;
  --yellow-dim:  rgba(234,179,8,0.13);

  --text-1:   #f0f4ff;
  --text-2:   #7a90b8;
  --text-3:   #3e5272;

  --sidebar-w:           240px;
  --sidebar-w-collapsed: 68px;
  --topbar-h:            60px;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;

  --shadow-sm:   0 2px 12px rgba(0,0,0,0.30);
  --shadow-md:   0 6px 28px rgba(0,0,0,0.40);
  --shadow-lg:   0 16px 56px rgba(0,0,0,0.55);
  --shadow-glow: 0 0 40px rgba(0,229,160,0.12);

  --font:       'Outfit', system-ui, sans-serif;
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, select, textarea { font-family: var(--font); border: none; outline: none; }

.hidden { display: none !important; }

/* ════════════════════════════════════════════ SCROLLBAR ══ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }

/* ═══════════════════════════════════════════════ LOGIN ══ */
.login-screen {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  z-index: 9999;
  overflow: hidden;
}

.login-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,160,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,160,0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

.login-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.login-glow-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(0,229,160,0.14), transparent 70%);
  top: -150px; left: -150px;
  animation: glowDrift 8s ease-in-out infinite alternate;
}
.login-glow-2 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(59,130,246,0.10), transparent 70%);
  bottom: -120px; right: -120px;
  animation: glowDrift 11s ease-in-out infinite alternate-reverse;
}

@keyframes glowDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}

.login-card {
  position: relative; z-index: 1;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 46px 50px;
  width: 100%; max-width: 448px;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(0,229,160,0.05);
  animation: cardIn 0.55s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo-wrap {
  display: flex; justify-content: center;
  margin-bottom: 8px;
}

.login-logo {
  width: 260px;
  filter: drop-shadow(0 0 24px rgba(0,229,160,0.28));
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.login-subtitle {
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  margin-bottom: 34px;
}

.login-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.input-wrap {
  position: relative;
  display: flex; align-items: center;
}

.input-wrap input {
  width: 100%;
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px 12px 42px;
  font-size: 14.5px;
  color: var(--text-1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: background var(--transition), box-shadow var(--transition);
}

.input-wrap input:focus {
  background: var(--bg-3);
  box-shadow: 0 0 0 3px var(--accent-dim), 0 2px 8px rgba(0,0,0,0.25);
}

.input-wrap input::placeholder { color: var(--text-3); }

.input-icon {
  position: absolute; left: 13px;
  width: 16px; height: 16px;
  color: var(--text-3);
  pointer-events: none;
}

.toggle-pw {
  position: absolute; right: 12px;
  color: var(--text-3);
  padding: 4px;
  transition: color var(--transition);
  display: flex; align-items: center;
}
.toggle-pw:hover { color: var(--accent); }
.toggle-pw svg  { width: 16px; height: 16px; }

.login-options {
  display: flex; justify-content: space-between; align-items: center;
}

.remember-me {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 13px; color: var(--text-2);
  user-select: none;
}
.remember-me input[type="checkbox"] { display: none; }

.custom-check {
  width: 17px; height: 17px;
  border-radius: 5px;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.remember-me input:checked ~ .custom-check {
  background: var(--accent);
}

.remember-me input:checked ~ .custom-check::after {
  content: '';
  display: block;
  width: 5px; height: 9px;
  border: 2px solid #00040d;
  border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.forgot-link {
  font-size: 13px;
  color: var(--accent);
  transition: opacity var(--transition);
}
.forgot-link:hover { opacity: 0.7; }

.btn-login {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #00e5a0, #00b37d);
  color: #00040d;
  font-size: 15px; font-weight: 700;
  padding: 13px;
  border-radius: var(--radius-sm);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  box-shadow: 0 4px 24px rgba(0,229,160,0.28);
  letter-spacing: 0.01em;
  margin-top: 4px;
}

.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,229,160,0.40); }
.btn-login:active { transform: translateY(0); }
.btn-login.loading { opacity: 0.65; pointer-events: none; }
.btn-icon { width: 17px; height: 17px; }

.login-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0 18px;
  color: var(--text-3); font-size: 12px;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--surface-2);
}

.btn-google {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 14px; color: var(--text-2);
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all var(--transition);
  opacity: 0.55;
}
.btn-google:not([disabled]):hover {
  background: var(--surface-2);
  color: var(--text-1);
  opacity: 1;
}
.google-icon { width: 18px; height: 18px; }

.coming-soon-badge {
  position: absolute; right: 14px;
  font-size: 10px; font-weight: 700;
  background: var(--surface-2);
  color: var(--text-3);
  padding: 2px 7px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-footer-text {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 24px;
}

/* ══════════════════════════════════════════════ APP LAYOUT ══ */
.app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════ SIDEBAR ══ */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-2);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: width var(--transition), min-width var(--transition);
  position: relative; z-index: 100;
  box-shadow: 4px 0 24px rgba(0,0,0,0.25);
}

.sidebar.collapsed {
  width: var(--sidebar-w-collapsed);
  min-width: var(--sidebar-w-collapsed);
}

.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 14px 16px;
  overflow: hidden;
}

.sidebar-logo {
  width: 150px;
  opacity: 1;
  transition: opacity var(--transition), width var(--transition);
  flex-shrink: 0;
}
.sidebar.collapsed .sidebar-logo { width: 0; opacity: 0; pointer-events: none; }

.sidebar-toggle {
  color: var(--text-3);
  padding: 7px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.sidebar-toggle:hover { background: var(--surface); color: var(--text-1); }
.sidebar-toggle svg  { width: 18px; height: 18px; display: block; }

/* NAV */
.sidebar-nav {
  flex: 1;
  padding: 10px 10px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 1px;
  position: relative;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 14px 8px 5px;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity var(--transition);
}
.sidebar.collapsed .nav-section-label { opacity: 0; }

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 14px; font-weight: 500;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.nav-item:hover {
  background: var(--surface);
  color: var(--text-1);
}

.nav-item.active {
  background: var(--accent-dim);
  color: var(--accent);
}

/* ─── SLIDING INDICATOR ─── */
.nav-indicator {
  position: absolute;
  left: 0;
  width: 3px;
  height: 36px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px var(--accent-glow), 0 0 4px var(--accent);
  transition: top 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.22s ease,
              height 0.22s ease;
  pointer-events: none;
  z-index: 10;
}

.nav-icon  { width: 18px; height: 18px; flex-shrink: 0; }
.nav-label { flex: 1; transition: opacity var(--transition), width var(--transition); }
.sidebar.collapsed .nav-label { opacity: 0; width: 0; pointer-events: none; }

.nav-badge {
  font-size: 10.5px; font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--text-2);
  transition: opacity var(--transition);
}
.nav-badge.new     { background: var(--accent-dim);   color: var(--accent); }
.nav-badge.pending { background: var(--orange-dim);   color: var(--orange); }
.sidebar.collapsed .nav-badge { opacity: 0; pointer-events: none; }

/* SIDEBAR FOOTER */
.sidebar-footer {
  padding: 14px 10px;
  background: var(--bg);
  display: flex; align-items: center; gap: 10px;
  overflow: hidden;
}

.admin-info {
  display: flex; align-items: center; gap: 10px;
  flex: 1; overflow: hidden;
  transition: opacity var(--transition);
}
.sidebar.collapsed .admin-info { opacity: 0; pointer-events: none; width: 0; }

.admin-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  color: #00040d;
  flex-shrink: 0;
  overflow: hidden;
}
.admin-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.admin-meta { display: flex; flex-direction: column; gap: 1px; overflow: hidden; }
.admin-name { font-size: 13px; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-role { font-size: 11px; color: var(--accent); font-weight: 500; }

.logout-btn {
  color: var(--text-3);
  padding: 7px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  flex-shrink: 0;
}
.logout-btn:hover { background: var(--red-dim); color: var(--red); }
.logout-btn svg  { width: 16px; height: 16px; display: block; }

/* ══════════════════════════════════════════════ MAIN WRAP ══ */
.main-wrap {
  flex: 1; display: flex; flex-direction: column;
  height: 100vh; overflow: hidden;
  background: var(--bg);
}

/* ════════════════════════════════════════════════ TOPBAR ══ */
.topbar {
  height: var(--topbar-h);
  min-height: var(--topbar-h);
  background: var(--bg);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px;
  position: sticky; top: 0; z-index: 50;
}

.topbar-left .breadcrumb {
  font-size: 15px; font-weight: 700; color: var(--text-1);
  letter-spacing: -0.01em;
}

.topbar-right {
  display: flex; align-items: center; gap: 14px;
}

.live-indicator {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface);
  padding: 5px 14px;
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
}

.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%       { box-shadow: 0 0 0 5px transparent; }
}

.live-text { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; }

.topbar-time { font-size: 13px; color: var(--text-2); font-weight: 500; letter-spacing: 0.02em; min-width: 78px; text-align: right; }

.topbar-icon-btn {
  position: relative;
  color: var(--text-2);
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: flex; align-items: center;
}
.topbar-icon-btn:hover { background: var(--surface); color: var(--text-1); }
.topbar-icon-btn svg  { width: 18px; height: 18px; }

.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 6px rgba(249,115,22,0.5);
}

.topbar-avatar { cursor: pointer; width: 32px; height: 32px; font-size: 12px; }

/* ═══════════════════════════════════════════ VIEW CONTAINER ══ */
.view-container {
  flex: 1;
  overflow-y: auto;
  padding: 28px 28px 48px;
}

.view { animation: viewIn 0.3s cubic-bezier(0.4,0,0.2,1) both; }

@keyframes viewIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════ DASHBOARD CARDS ══ */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 28px;
}

.page-title    { font-size: 22px; font-weight: 800; color: var(--text-1); letter-spacing: -0.02em; }
.page-subtitle { font-size: 13px; color: var(--text-2); margin-top: 4px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 22px 22px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-accent, var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-card:hover::before { opacity: 1; }

.stat-card.accent  { --card-accent: var(--accent); }
.stat-card.blue    { --card-accent: var(--blue); }
.stat-card.purple  { --card-accent: var(--purple); }
.stat-card.orange  { --card-accent: var(--orange); }
.stat-card.red     { --card-accent: var(--red); }

.stat-row { display: flex; align-items: center; justify-content: space-between; }

.stat-icon-wrap {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.stat-icon-wrap svg { width: 18px; height: 18px; }

.stat-icon-wrap.accent { background: var(--accent-dim);  color: var(--accent); }
.stat-icon-wrap.blue   { background: var(--blue-dim);    color: var(--blue); }
.stat-icon-wrap.purple { background: var(--purple-dim);  color: var(--purple); }
.stat-icon-wrap.orange { background: var(--orange-dim);  color: var(--orange); }
.stat-icon-wrap.red    { background: var(--red-dim);     color: var(--red); }

.stat-change {
  font-size: 11.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 99px;
}
.stat-change.up   { background: rgba(0,229,160,0.10); color: var(--accent); }
.stat-change.down { background: var(--red-dim);        color: var(--red); }

.stat-value {
  font-size: 30px; font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.03em;
  line-height: 1;
  transition: all 0.4s ease;
}

.stat-label { font-size: 12.5px; color: var(--text-2); font-weight: 500; }

/* ═══════════════════════════════════════════════ GRID ══ */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
}
@media (max-width: 1100px) { .dashboard-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════ PANELS ══ */
.panel {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  background: var(--surface-2);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.panel-title { font-size: 14px; font-weight: 700; color: var(--text-1); }

.panel-action {
  font-size: 12.5px; color: var(--accent);
  font-weight: 600; cursor: pointer;
  transition: opacity var(--transition);
}
.panel-action:hover { opacity: 0.7; }

.panel-body { padding: 18px 22px; }

/* ════════════════════════════════════════════════ TABLES ══ */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

thead th {
  text-align: left;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  background: var(--surface-2);
  white-space: nowrap;
}

tbody tr {
  transition: background var(--transition);
}
tbody tr + tr { border-top: 1px solid rgba(255,255,255,0.03); }
tbody tr:hover { background: var(--surface-2); }

tbody td { padding: 13px 16px; color: var(--text-1); vertical-align: middle; }

/* ════════════════════════════════════════════════ BADGES ══ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  white-space: nowrap;
}

.badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
}

.badge.active   { background: rgba(0,229,160,0.10); color: var(--accent); }
.badge.pending  { background: var(--orange-dim);    color: var(--orange); }
.badge.inactive { background: var(--surface-3);     color: var(--text-3); }
.badge.rejected { background: var(--red-dim);       color: var(--red); }
.badge.approved { background: var(--blue-dim);      color: var(--blue); }

/* ══════════════════════════════════════════════ AVATAR ROW ══ */
.user-row { display: flex; align-items: center; gap: 10px; }
.user-row .admin-avatar { width: 30px; height: 30px; font-size: 11px; }
.user-row-meta .name  { font-size: 13.5px; font-weight: 600; color: var(--text-1); }
.user-row-meta .email { font-size: 12px;   color: var(--text-2); }

/* ══════════════════════════════════════════════ ACTIVITY ══ */
.activity-list { display: flex; flex-direction: column; }

.activity-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 0;
}
.activity-item + .activity-item { border-top: 1px solid rgba(255,255,255,0.03); }

.activity-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.activity-icon svg { width: 14px; height: 14px; }

.activity-content { flex: 1; }
.activity-text { font-size: 13px; color: var(--text-1); line-height: 1.45; }
.activity-text strong { color: var(--accent); }
.activity-time { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }

/* ═══════════════════════════════════════════════ MINI CHART ══ */
.mini-chart-wrap { padding: 18px 22px 22px; }

.chart-bars {
  display: flex; align-items: flex-end; gap: 6px;
  height: 90px;
}

.bar {
  flex: 1;
  background: var(--accent-dim);
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: height 0.7s cubic-bezier(0.34,1.56,0.64,1), background var(--transition);
  cursor: pointer;
}
.bar:hover { background: var(--accent); }
.bar::after {
  content: attr(data-val);
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%; transform: translateX(-50%);
  font-size: 10px; color: var(--text-2);
  white-space: nowrap; opacity: 0;
  transition: opacity var(--transition);
}
.bar:hover::after { opacity: 1; }

.chart-labels {
  display: flex; gap: 6px;
  margin-top: 8px;
}
.chart-label { flex: 1; text-align: center; font-size: 10.5px; color: var(--text-3); }

/* ═══════════════════════════════════════ TOOLBAR ══ */
.toolbar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative; flex: 1; min-width: 200px;
}
.search-wrap input {
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 9px 14px 9px 38px;
  font-size: 13.5px; color: var(--text-1);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition);
}
.search-wrap input:focus {
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--accent-dim), var(--shadow-sm);
}
.search-wrap input::placeholder { color: var(--text-3); }
.search-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--text-3);
}

.filter-select {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 13px; color: var(--text-2);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition);
  appearance: none;
}
.filter-select:focus { background: var(--surface-2); }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #00040d;
  box-shadow: 0 2px 16px rgba(0,229,160,0.22);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,229,160,0.35); }

.btn-ghost {
  background: var(--surface);
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text-1); }

.btn-danger { background: var(--red-dim); color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; box-shadow: 0 4px 16px rgba(239,68,68,0.3); }

.btn svg { width: 15px; height: 15px; }

/* ════════════════════════════════════════════════ EMPTY STATE ══ */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 60px 20px; color: var(--text-3); text-align: center;
}
.empty-state svg { width: 40px; height: 40px; opacity: 0.35; }
.empty-state p   { font-size: 14px; }

/* ════════════════════════════════════════════════ TOAST ══ */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 99999;
}

.toast {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  min-width: 290px; max-width: 370px;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(28px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

.toast.removing {
  animation: toastOut 0.25s ease-in forwards;
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(28px) scale(0.95); }
}

.toast-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.toast.success .toast-icon { color: var(--accent); }
.toast.error   .toast-icon { color: var(--red); }
.toast.warning .toast-icon { color: var(--orange); }
.toast.info    .toast-icon { color: var(--blue); }

.toast-left { display: flex; align-items: flex-start; gap: 10px; flex: 1; }
.toast-msg  { font-size: 13.5px; color: var(--text-1); line-height: 1.4; }
.toast-close {
  color: var(--text-3); cursor: pointer; padding: 2px;
  transition: color var(--transition);
}
.toast-close:hover { color: var(--text-1); }
.toast-close svg { width: 14px; height: 14px; display: block; }

/* ════════════════════════════════════════════════ MODAL ══ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,4,13,0.80);
  backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease both;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 520px;
  max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(0,229,160,0.04);
  animation: modalIn 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
  overflow: hidden;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.90) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px 18px;
  background: var(--surface-2);
  flex-shrink: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h3 { font-size: 16px; font-weight: 700; color: var(--text-1); }

.modal-close {
  color: var(--text-3); padding: 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.modal-close:hover { background: var(--surface-3); color: var(--text-1); }
.modal-close svg  { width: 18px; height: 18px; display: block; }

.modal-body   { padding: 22px 26px; overflow-y: auto; flex: 1; }
.modal-footer {
  padding: 18px 26px;
  background: var(--surface-2);
  display: flex; justify-content: flex-end; gap: 10px;
  flex-shrink: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ════════════════════════════════════════════ KPI ROW ══ */
.kpi-row {
  display: flex; gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.kpi-item {
  flex: 1; min-width: 100px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.kpi-val { font-size: 22px; font-weight: 800; color: var(--text-1); line-height: 1; }
.kpi-lbl { font-size: 11px; color: var(--text-3); margin-top: 5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* ════════════════════════════════════════════ SETTINGS ══ */
.settings-section {
  background: var(--surface);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.settings-section-title {
  font-size: 11px; font-weight: 700;
  color: var(--text-3);
  padding: 14px 22px;
  background: var(--surface-2);
  text-transform: uppercase; letter-spacing: 0.08em;
}

.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
}
.settings-row + .settings-row { border-top: 1px solid rgba(255,255,255,0.03); }

.settings-row-left { display: flex; flex-direction: column; gap: 3px; }
.settings-row-label { font-size: 14px; font-weight: 600; color: var(--text-1); }
.settings-row-desc  { font-size: 12.5px; color: var(--text-2); }

/* TOGGLE SWITCH */
.toggle-switch {
  position: relative; width: 42px; height: 24px;
  cursor: pointer; flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0;
  background: var(--surface-3);
  border-radius: 99px;
  transition: background var(--transition);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}
.toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: var(--text-3);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.toggle-switch input:checked ~ .toggle-track { background: var(--accent); }
.toggle-switch input:checked ~ .toggle-thumb { transform: translateX(18px); background: #00040d; }

/* ════════════════════════════════════════════════ LOGS ══ */
.log-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px;
  font-size: 13px;
  transition: background var(--transition);
}
.log-item:hover { background: var(--surface-2); }
.log-item + .log-item { border-top: 1px solid rgba(255,255,255,0.03); }

.log-level {
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em;
  padding: 2px 8px; border-radius: 99px;
  flex-shrink: 0; margin-top: 2px;
  text-transform: uppercase;
}
.log-level.info    { background: var(--blue-dim);   color: var(--blue); }
.log-level.warn    { background: var(--orange-dim); color: var(--orange); }
.log-level.error   { background: var(--red-dim);    color: var(--red); }
.log-level.success { background: var(--accent-dim); color: var(--accent); }

.log-msg  { color: var(--text-1); flex: 1; line-height: 1.4; }
.log-time { color: var(--text-3); font-size: 11.5px; white-space: nowrap; flex-shrink: 0; font-family: monospace; }

/* ════════════════════════════════════════ MINI MISC ══ */
.separator { height: 1px; background: var(--surface-2); margin: 20px 0; }

.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-2); font-size: 13px; }

.flex-center { display: flex; align-items: center; justify-content: center; }

.action-buttons { display: flex; align-items: center; gap: 6px; }

.tbl-btn {
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600;
  transition: all var(--transition);
}
.tbl-btn-approve { background: var(--accent-dim); color: var(--accent); }
.tbl-btn-approve:hover { background: var(--accent); color: #00040d; box-shadow: 0 2px 10px rgba(0,229,160,0.3); }
.tbl-btn-reject  { background: var(--red-dim);    color: var(--red); }
.tbl-btn-reject:hover  { background: var(--red); color: #fff; box-shadow: 0 2px 10px rgba(239,68,68,0.3); }
.tbl-btn-view    { background: var(--surface-2);  color: var(--text-2); }
.tbl-btn-view:hover  { background: var(--surface-3); color: var(--text-1); }
