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

/* ══════════════════════════════════════════════════════════
   CSS Variables
══════════════════════════════════════════════════════════ */
:root {
  --primary:        #1B4332;
  --primary-dark:   #0F2D21;
  --primary-light:  #2D6A4F;
  --primary-xlight: #40916C;
  --gold:           #D4AC0D;
  --gold-light:     #F0CA4E;
  --gold-dark:      #A68A0A;
  --white:          #FFFFFF;
  --gray-50:        #F8F9FA;
  --gray-100:       #F1F3F5;
  --gray-200:       #E9ECEF;
  --gray-300:       #DEE2E6;
  --gray-400:       #CED4DA;
  --gray-500:       #ADB5BD;
  --gray-600:       #6C757D;
  --gray-700:       #495057;
  --gray-800:       #343A40;
  --gray-900:       #212529;
  --danger:         #DC2626;
  --danger-light:   #FEE2E2;
  --success:        #16A34A;
  --success-light:  #DCFCE7;
  --warning:        #D97706;
  --warning-light:  #FEF3C7;
  --info:           #0891B2;
  --info-light:     #CFFAFE;
  --sidebar-w:      260px;
  --header-h:       64px;
  --radius-sm:      6px;
  --radius:         10px;
  --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:         0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:      0 10px 40px rgba(0,0,0,.12);
  --shadow-xl:      0 20px 60px rgba(0,0,0,.18);
  --transition:     all .25s cubic-bezier(.4,0,.2,1);
}

/* ══════════════════════════════════════════════════════════
   Reset & Base
══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ══════════════════════════════════════════════════════════
   LANDING PAGE
══════════════════════════════════════════════════════════ */
.landing-body {
  background: var(--primary-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Navbar */
.landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15,45,33,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,172,13,.15);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.nav-logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(212,172,13,.4);
}
.nav-brand-text h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.5px;
  line-height: 1;
}
.nav-brand-text span {
  font-size: .7rem;
  color: var(--gold-light);
  font-weight: 400;
  letter-spacing: .5px;
}
.nav-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--primary-dark);
  font-weight: 700;
  font-size: .9rem;
  padding: .6rem 1.5rem;
  border-radius: 50px;
  border: none;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(212,172,13,.35);
  display: inline-block;
}
.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,172,13,.45);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(64,145,108,.25) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(212,172,13,.1) 0%, transparent 60%),
    linear-gradient(180deg, var(--primary-dark) 0%, #0a1f15 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212,172,13,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,172,13,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .15;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: var(--primary-light);
  top: -100px; left: -100px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: var(--gold);
  bottom: -100px; right: -100px;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(212,172,13,.12);
  border: 1px solid rgba(212,172,13,.3);
  color: var(--gold-light);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}
.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: .5rem;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, #e8c547 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(212,172,13,.3));
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,.75);
  font-weight: 400;
  margin-bottom: .5rem;
  letter-spacing: .5px;
}
.hero-subtitle-full {
  font-size: clamp(.85rem, 1.8vw, 1rem);
  color: rgba(255,255,255,.5);
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  border: none;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(212,172,13,.4);
}
.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(212,172,13,.5);
}
.hero-cta-icon {
  transition: transform .25s;
}
.hero-cta:hover .hero-cta-icon {
  transform: translateX(4px);
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hero-stat-item { text-align: center; }
.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  margin-top: 4px;
  letter-spacing: .5px;
}

/* Features Section */
.features {
  padding: 5rem 2rem;
  background: var(--primary-dark);
  position: relative;
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-badge {
  display: inline-block;
  background: rgba(212,172,13,.12);
  border: 1px solid rgba(212,172,13,.25);
  color: var(--gold-light);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: .75rem;
}
.section-desc {
  color: rgba(255,255,255,.55);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: .95rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,172,13,.06), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,172,13,.3);
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(212,172,13,.2), rgba(212,172,13,.05));
  border: 1px solid rgba(212,172,13,.25);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
}
.feature-desc {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
}

/* About Section */
.about {
  padding: 5rem 2rem;
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
}
.about-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-text h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -.5px;
}
.about-text p {
  color: rgba(255,255,255,.65);
  line-height: 1.8;
  font-size: .95rem;
  margin-bottom: 1rem;
}
.about-list { margin-top: 1rem; }
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  margin-bottom: .75rem;
}
.about-list li::before {
  content: '✦';
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.about-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(212,172,13,.2);
  border-radius: var(--radius-xl);
  padding: 2rem;
}
.about-card-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.about-card-item:last-child { border-bottom: none; }
.about-card-icon {
  width: 40px; height: 40px;
  background: rgba(212,172,13,.15);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.about-card-label { font-size: .8rem; color: rgba(255,255,255,.45); }
.about-card-val { font-size: .95rem; font-weight: 600; color: var(--white); }

/* Footer */
.landing-footer {
  background: var(--primary-dark);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 2rem;
  text-align: center;
  color: rgba(255,255,255,.4);
  font-size: .8rem;
}
.landing-footer span { color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   AUTH LAYOUT (Login Page)
══════════════════════════════════════════════════════════ */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 30% 20%, rgba(64,145,108,.3) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(212,172,13,.15) 0%, transparent 60%),
    linear-gradient(135deg, var(--primary-dark) 0%, #0a1f15 100%);
  padding: 1rem;
}
.auth-card {
  background: rgba(255,255,255,.97);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,.1);
}
.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(27,67,50,.35);
}
.auth-logo h1 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -1px;
  line-height: 1;
}
.auth-logo p {
  font-size: .78rem;
  color: var(--gray-500);
  margin-top: .25rem;
}
.auth-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: .25rem;
}
.auth-subtitle {
  font-size: .85rem;
  color: var(--gray-500);
  margin-bottom: 1.75rem;
}

/* ══════════════════════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: .4rem;
  letter-spacing: .3px;
}
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .9rem;
  color: var(--gray-900);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary-xlight);
  box-shadow: 0 0 0 3px rgba(27,67,50,.08);
}
.form-control::placeholder { color: var(--gray-400); }
.form-control.is-invalid { border-color: var(--danger); }
select.form-control { cursor: pointer; }
.input-group {
  position: relative;
}
.input-group .form-control { padding-left: 2.75rem; }
.input-group-icon {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 1.1rem;
  pointer-events: none;
}
.form-hint {
  font-size: .78rem;
  color: var(--gray-500);
  margin-top: .3rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.35rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}
.btn-sm { padding: .4rem .85rem; font-size: .8rem; }
.btn-lg {
  padding: .85rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 12px rgba(27,67,50,.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27,67,50,.35);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(212,172,13,.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212,172,13,.4);
}
.btn-outline {
  background: transparent;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
}
.btn-outline:hover { background: var(--gray-100); border-color: var(--gray-400); }
.btn-danger {
  background: var(--danger);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(220,38,38,.25);
}
.btn-danger:hover { background: #B91C1C; transform: translateY(-1px); }
.btn-success {
  background: var(--success);
  color: var(--white);
}
.btn-success:hover { background: #15803D; }

/* ══════════════════════════════════════════════════════════
   ALERTS / FLASH MESSAGES
══════════════════════════════════════════════════════════ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  margin-bottom: 1.25rem;
  animation: slideDown .3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.alert-success { background: var(--success-light); color: #14532D; border-left: 4px solid var(--success); }
.alert-danger   { background: var(--danger-light);  color: #7F1D1D; border-left: 4px solid var(--danger); }
.alert-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* ══════════════════════════════════════════════════════════
   DASHBOARD LAYOUT
══════════════════════════════════════════════════════════ */
.app-wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0,0,0,.15);
  transition: transform .3s ease;
}
.sidebar-brand {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: .85rem;
}
.sidebar-logo {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--primary-dark);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(212,172,13,.4);
}
.sidebar-brand-text h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.3px;
  line-height: 1.1;
}
.sidebar-brand-text span {
  font-size: .65rem;
  color: rgba(255,255,255,.45);
  font-weight: 400;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.sidebar-user {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: .85rem;
}
.sidebar-avatar {
  width: 38px; height: 38px;
  background: rgba(212,172,13,.2);
  border: 1.5px solid rgba(212,172,13,.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.sidebar-user-info { overflow: hidden; }
.sidebar-user-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: .7rem;
  color: rgba(255,255,255,.45);
  text-transform: capitalize;
}

.sidebar-nav { flex: 1; padding: 1rem 0; }
.sidebar-nav-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding: .75rem 1.25rem .35rem;
}
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .75rem 1.25rem;
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  border-radius: 0;
  cursor: pointer;
  margin: 1px 0;
}
.sidebar-nav-item:hover {
  background: rgba(255,255,255,.07);
  color: var(--white);
}
.sidebar-nav-item.active {
  background: rgba(212,172,13,.15);
  color: var(--gold-light);
  font-weight: 600;
}
.sidebar-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--gold);
  border-radius: 0 3px 3px 0;
}
.sidebar-nav-icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .75rem 1rem;
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}
.sidebar-logout:hover { background: rgba(220,38,38,.15); color: #FCA5A5; }

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

/* Header */
.top-header {
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-left { display: flex; align-items: center; gap: 1rem; }
.page-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  color: var(--gray-500);
}
.breadcrumb a { color: var(--primary-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--gray-300); }
.header-right { display: flex; align-items: center; gap: .75rem; }
.header-date {
  font-size: .8rem;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: .35rem .85rem;
  border-radius: 50px;
}

/* Page Content */
.page-content { padding: 1.75rem; flex: 1; }

/* ══════════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════════ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}
.card-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.card-title-icon { font-size: 1.1rem; }
.card-body { padding: 1.5rem; }

/* Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.stat-icon-green  { background: var(--success-light); }
.stat-icon-red    { background: var(--danger-light); }
.stat-icon-blue   { background: var(--info-light); }
.stat-icon-gold   { background: var(--warning-light); }
.stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}
.stat-label {
  font-size: .78rem;
  color: var(--gray-500);
  margin-top: .2rem;
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════
   TABLE
══════════════════════════════════════════════════════════ */
.table-wrapper { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.table thead tr {
  background: var(--primary);
}
.table thead th {
  padding: .9rem 1rem;
  text-align: left;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
}
.table thead th:first-child { border-radius: 0; }
.table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background .15s;
}
.table tbody tr:hover { background: var(--gray-50); }
.table tbody td {
  padding: .85rem 1rem;
  color: var(--gray-800);
  vertical-align: middle;
}
.table-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-400);
}
.table-no { font-size: .8rem; color: var(--gray-400); }

/* ══════════════════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .3px;
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
}
.badge-dipinjam  { background: var(--danger-light);  color: #991B1B; }
.badge-dipinjam::before  { background: var(--danger); }
.badge-kembali   { background: var(--success-light); color: #14532D; }
.badge-kembali::before   { background: var(--success); }
.badge-superadmin { background: var(--warning-light); color: #78350F; }
.badge-admin      { background: var(--info-light);    color: #075985; }

/* ══════════════════════════════════════════════════════════
   TOOLBAR (search + actions)
══════════════════════════════════════════════════════════ */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.toolbar-left { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-box .search-icon {
  position: absolute;
  left: .85rem;
  color: var(--gray-400);
  font-size: .95rem;
  pointer-events: none;
}
.search-input {
  padding: .6rem .9rem .6rem 2.4rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .875rem;
  width: 240px;
  outline: none;
  transition: var(--transition);
  background: var(--white);
}
.search-input:focus { border-color: var(--primary-xlight); box-shadow: 0 0 0 3px rgba(27,67,50,.07); }
.filter-select {
  padding: .6rem .9rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .875rem;
  outline: none;
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-700);
}
.filter-select:focus { border-color: var(--primary-xlight); }

/* ══════════════════════════════════════════════════════════
   ACTION BUTTONS in table
══════════════════════════════════════════════════════════ */
.action-btns { display: flex; gap: .35rem; align-items: center; }

/* ══════════════════════════════════════════════════════════
   DETAIL VIEW
══════════════════════════════════════════════════════════ */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
}
@media (max-width: 640px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-item {}
.detail-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: .25rem;
}
.detail-value {
  font-size: .95rem;
  font-weight: 500;
  color: var(--gray-900);
}
.detail-divider {
  grid-column: 1 / -1;
  border: none;
  border-top: 1px solid var(--gray-100);
  margin: .5rem 0;
}

/* ══════════════════════════════════════════════════════════
   CONFIRM DIALOG (via inline js)
══════════════════════════════════════════════════════════ */
.confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.confirm-overlay.show { display: flex; }
.confirm-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: popIn .25s ease;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}
.confirm-icon { font-size: 3rem; margin-bottom: 1rem; }
.confirm-title { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin-bottom: .5rem; }
.confirm-msg   { font-size: .875rem; color: var(--gray-500); margin-bottom: 1.5rem; }
.confirm-actions { display: flex; gap: .75rem; justify-content: center; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 199;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--gray-700);
  cursor: pointer;
  padding: .35rem;
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.show { display: block; }
  .main-content { margin-left: 0; }
  .hamburger { display: block; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .page-content { padding: 1rem; }
}

/* ══════════════════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.fw-700 { font-weight: 700; }
.text-muted { color: var(--gray-500); font-size: .85rem; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.w-100 { width: 100%; }
