/* ============================================
   SIKUTA — Sistem Informasi Buku Tamu
   Pengadilan Tinggi Agama Pontianak
   Design: Premium Dark-Green + Gold
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Variables ──────────────────────────────── */
:root {
  --green-900: #0d2b1a;
  --green-800: #1a4d2e;
  --green-700: #1f5c36;
  --green-600: #246b3e;
  --green-500: #2e8b4e;
  --green-400: #3aad62;
  --green-100: #d6f0dd;

  --gold-600:  #a8841c;
  --gold-500:  #c9a227;
  --gold-400:  #d4b03a;
  --gold-300:  #e8cc72;
  --gold-100:  #fdf6dc;

  --white:     #ffffff;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-300:  #cbd5e1;
  --gray-400:  #94a3b8;
  --gray-500:  #64748b;
  --gray-600:  #475569;
  --gray-700:  #334155;
  --gray-800:  #1e293b;
  --gray-900:  #0f172a;

  --red-500:   #ef4444;
  --red-100:   #fee2e2;
  --blue-500:  #3b82f6;
  --blue-100:  #dbeafe;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;

  --sidebar-w:    260px;
  --topbar-h:     64px;
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:    0 10px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
  --transition:   all .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--gray-100);
  color: var(--gray-800);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── Sidebar ────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  position: fixed;
  left: 0; top: 0;
  background: linear-gradient(180deg, var(--green-900) 0%, var(--green-800) 60%, #0d2b1a 100%);
  display: flex;
  flex-direction: column;
  z-index: 900;
  transition: var(--transition);
  box-shadow: 4px 0 24px rgba(0,0,0,.25);
  border-right: 1px solid rgba(201,162,39,.15);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(201,162,39,.2);
}
.sidebar-logo { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.sidebar-brand { flex: 1; min-width: 0; }
.brand-name {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-400);
  letter-spacing: .5px;
  line-height: 1.1;
}
.brand-sub {
  display: block;
  font-size: .68rem;
  color: rgba(255,255,255,.55);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  font-weight: 500;
  position: relative;
  margin-bottom: 2px;
  transition: var(--transition);
}
.nav-item:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.nav-item.active {
  background: linear-gradient(135deg, rgba(201,162,39,.25), rgba(201,162,39,.1));
  color: var(--gold-300);
  border: 1px solid rgba(201,162,39,.25);
}
.nav-item.active i { color: var(--gold-400); }
.nav-item i { font-size: 1.25rem; flex-shrink: 0; }
.nav-item span { flex: 1; }
.nav-indicator {
  width: 4px; height: 60%;
  background: var(--gold-400);
  border-radius: 2px;
  position: absolute;
  right: -1px;
}

.sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.user-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem;
  color: var(--green-900);
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name {
  display: block;
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-level {
  font-size: .68rem;
  padding: 1px 7px;
  border-radius: 20px;
  font-weight: 600;
  margin-top: 2px;
  display: inline-block;
}
.badge-gold  { background: var(--gold-500); color: var(--green-900); }
.badge-blue  { background: var(--blue-500); color: #fff; }
.badge-green { background: var(--green-500); color: #fff; }

.sidebar-actions {
  display: flex;
  gap: 8px;
}
.btn-icon {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 9px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.7);
  font-size: .82rem;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,.08);
}
.btn-icon:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-danger-icon:hover { background: rgba(239,68,68,.2); color: #fca5a5; }
.btn-icon i { font-size: 1.15rem; }

/* ── Overlay (mobile) ───────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 890;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* ── Main Content ───────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: var(--transition);
  overflow-x: hidden;
}

/* ── Topbar ─────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 800;
  height: var(--topbar-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  box-shadow: var(--shadow-sm);
}
.menu-toggle {
  display: none;
  background: none; border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-600);
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.menu-toggle:hover { background: var(--gray-100); color: var(--green-800); }

.topbar-title { flex: 1; }
.topbar-title h1 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-800);
  line-height: 1.2;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: var(--gray-400);
  margin-top: 2px;
}
.breadcrumb a { color: var(--green-600); }
.breadcrumb a:hover { text-decoration: underline; }
.bc-current { color: var(--gray-600); font-weight: 500; }

.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-time { font-size: .75rem; color: var(--gray-500); font-weight: 500; white-space: nowrap; }
.topbar-logout {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--green-800);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  transition: var(--transition);
}
.topbar-logout:hover { background: var(--green-700); transform: translateY(-1px); }
.topbar-logout i { font-size: 1rem; }

/* ── Page Content ───────────────────────────── */
.page-content {
  flex: 1;
  padding: 24px;
  width: 100%;
  min-width: 0;
}

/* ── Flash Messages ─────────────────────────── */
.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 24px 0;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: .88rem;
  font-weight: 500;
  animation: slideDown .35s ease;
  transition: opacity .5s;
  border: 1px solid transparent;
}
.flash i { font-size: 1.15rem; flex-shrink: 0; }
.flash-close { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 1.2rem; opacity: .7; }
.flash-success { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.flash-danger  { background: var(--red-100); color: #991b1b; border-color: #fca5a5; }
.flash-warning { background: var(--amber-100); color: #92400e; border-color: #fcd34d; }
.flash-info    { background: var(--blue-100); color: #1e40af; border-color: #93c5fd; }

@keyframes slideDown { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ── Cards ──────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.card-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-100);
  background: linear-gradient(135deg, var(--gray-50), var(--white));
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-800);
  display: flex; align-items: center; gap: 10px;
}
.card-title i { color: var(--gold-500); font-size: 1.3rem; }
.card-body { padding: 20px 24px; }
.card-footer { padding: 14px 24px; border-top: 1px solid var(--gray-100); background: var(--gray-50); }

/* ── Stat Cards ─────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.stat-card::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.stat-card.green  { background: linear-gradient(135deg, var(--green-700), var(--green-800)); color: #fff; }
.stat-card.gold   { background: linear-gradient(135deg, var(--gold-600), var(--gold-500)); color: var(--green-900); }
.stat-card.teal   { background: linear-gradient(135deg, #0d7377, #14a085); color: #fff; }
.stat-card.blue   { background: linear-gradient(135deg, #1e40af, #2563eb); color: #fff; }
.stat-card.red    { background: linear-gradient(135deg, #991b1b, #dc2626); color: #fff; }

.stat-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.stat-info {}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}
.stat-label {
  font-size: .78rem;
  opacity: .85;
  margin-top: 4px;
  font-weight: 500;
}

/* ── Table ──────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  -webkit-overflow-scrolling: touch;
}
table.data-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
  font-size: .85rem;
}
.data-table thead {
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  color: #fff;
}
.data-table thead th {
  padding: 13px 16px;
  text-align: left;
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.data-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--gray-50); }
.data-table td {
  padding: 12px 16px;
  vertical-align: middle;
}
.data-table td:first-child { font-weight: 600; color: var(--gray-700); }
.data-table .no-data {
  text-align: center;
  padding: 50px;
  color: var(--gray-400);
}
.data-table .no-data i { font-size: 2.5rem; display: block; margin-bottom: 8px; }

.row-no {
  width: 40px;
  color: var(--gray-400) !important;
  font-weight: 400 !important;
  text-align: center;
}

/* ── Badges ─────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: var(--amber-100); color: #92400e; }
.badge-danger  { background: var(--red-100); color: #991b1b; }
.badge-info    { background: var(--blue-100); color: #1e40af; }
.badge-gold    { background: var(--gold-100); color: var(--gold-600); }

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn i { font-size: 1rem; }

.btn-primary   { background: var(--green-800); color: #fff; }
.btn-primary:hover { background: var(--green-700); }
.btn-gold      { background: var(--gold-500); color: var(--green-900); }
.btn-gold:hover { background: var(--gold-400); }
.btn-danger    { background: var(--red-500); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-secondary { background: var(--gray-200); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-300); }
.btn-info      { background: var(--blue-500); color: #fff; }
.btn-info:hover { background: #2563eb; }
.btn-sm { padding: 6px 12px; font-size: .78rem; gap: 5px; }
.btn-sm i { font-size: .88rem; }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--green-800);
  color: var(--green-800);
}
.btn-outline:hover { background: var(--green-800); color: #fff; }

/* ── Forms ──────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-700);
}
.form-group label .req { color: var(--red-500); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(30,93,56,.1);
}
.form-control::placeholder { color: var(--gray-400); }
.form-text { font-size: .75rem; color: var(--gray-500); margin-top: 2px; }

.form-actions {
  display: flex;
  gap: 12px;
  padding-top: 8px;
  flex-wrap: wrap;
}

/* ── Search Bar ─────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search-input-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 1.1rem;
}
.search-input-wrap input {
  padding-left: 38px;
}

/* ── Action Buttons (table) ─────────────────── */
.actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Modal ──────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  animation: slideUp .3s cubic-bezier(.34,1.56,.64,1);
  overflow: hidden;
}
.modal-header {
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  color: #fff;
}
.modal-header h3 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.modal-close { background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; opacity: .8; }
.modal-close:hover { opacity: 1; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--gray-100); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ── Dashboard Specific ─────────────────────── */
.dashboard-header {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-700) 50%, #1f6e3d 100%);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  color: #fff;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.dashboard-header::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(201,162,39,.12);
}
.dashboard-header::after {
  content: '';
  position: absolute;
  right: 60px; bottom: -80px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.dh-text {}
.dh-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.dh-sub { opacity: .75; font-size: .9rem; }
.dh-date { font-size: .82rem; opacity: .6; margin-top: 8px; }
.dh-icon { font-size: 4.5rem; opacity: .25; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); }

/* ── Login Page ─────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  width: 100%;
}
.login-left {
  flex: 1;
  background: linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 40%, #1f6e3d 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}
.login-left::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../PTA Pontianak 6 (1).png') center/cover no-repeat;
  opacity: .08;
}
.login-left::after {
  content: '';
  position: absolute;
  top: -10%; right: -10%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,.15), transparent 70%);
}
.login-brand { position: relative; z-index: 1; text-align: center; }
.login-logo { width: 90px; height: 90px; object-fit: contain; margin-bottom: 20px; }
.login-brand-name {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gold-400);
  letter-spacing: 2px;
  line-height: 1;
}
.login-brand-full {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  margin-top: 8px;
  letter-spacing: .5px;
}
.login-brand-inst {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  margin-top: 6px;
}
.login-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
  margin: 20px auto;
  border-radius: 2px;
}
.login-tagline {
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  text-align: center;
  line-height: 1.7;
  position: relative; z-index: 1;
}
.login-features {
  position: relative; z-index: 1;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  max-width: 340px;
}
.login-feat {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}
.login-feat i { font-size: 1.5rem; color: var(--gold-400); display: block; margin-bottom: 6px; }
.login-feat span { font-size: .72rem; color: rgba(255,255,255,.65); font-weight: 500; }

.login-right {
  width: 440px;
  flex-shrink: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 44px;
}
.login-form-wrap { width: 100%; max-width: 360px; }
.login-form-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-800);
  margin-bottom: 6px;
}
.login-form-sub {
  color: var(--gray-500);
  font-size: .88rem;
  margin-bottom: 32px;
}

.login-input-group {
  position: relative;
  margin-bottom: 18px;
}
.login-input-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}
.login-input-group .input-icon {
  position: absolute;
  left: 14px;
  bottom: 12px;
  color: var(--gray-400);
  font-size: 1.1rem;
  pointer-events: none;
}
.login-input-group input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: .92rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--gray-50);
}
.login-input-group input:focus {
  outline: none;
  border-color: var(--green-600);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(30,93,56,.1);
}

.btn-login {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  margin-top: 8px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-login:hover {
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26,77,46,.35);
}
.btn-login:active { transform: translateY(0); }

.login-alert {
  background: var(--red-100);
  color: #991b1b;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: .85rem;
  font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
  animation: slideDown .3s ease;
}
.login-alert i { flex-shrink: 0; }

.login-footer { text-align: center; margin-top: 32px; color: var(--gray-400); font-size: .75rem; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .sidebar {
    left: calc(-1 * var(--sidebar-w));
  }
  .sidebar.open { left: 0; }
  .main-content { margin-left: 0; }
  .menu-toggle { display: flex; }
  .topbar-time { display: none; }
}

@media (max-width: 768px) {
  .login-left { display: none; }
  .login-right { width: 100%; }
  .page-content { padding: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar { padding: 0 16px; }
  .card-header, .card-body { padding-left: 16px; padding-right: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .dashboard-header { padding: 20px; }
  .dh-title { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .btn { padding: 8px 14px; font-size: .82rem; }
  .search-bar { flex-direction: column; align-items: stretch; }
}

/* ── Print ──────────────────────────────────── */
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main-content { margin-left: 0 !important; }
  .card { box-shadow: none; border: 1px solid #ccc; }
  body { background: #fff; }
  .data-table thead { background: #1a4d2e !important; -webkit-print-color-adjust: exact; }
}

/* ── Utility ────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.gap-2 { gap: 8px; }
.d-flex { display: flex; align-items: center; }
.ms-auto { margin-left: auto; }
.section-divider { border: none; border-top: 1px solid var(--gray-200); margin: 24px 0; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-400); }
.empty-state i { font-size: 3.5rem; display: block; margin-bottom: 12px; opacity: .5; }
.empty-state p { font-size: .9rem; }

