/* ============================================================
   Sistem Klinik — Black & Gold Design System
   ============================================================ */

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

:root {
  /* ── Gold Palette ── */
  --gold:         #D4A017;
  --gold-dark:    #A87C00;
  --gold-deeper:  #7B5C00;
  --gold-light:   #FFF3CC;
  --gold-subtle:  rgba(212,160,23,.12);
  --gold-rgb:     212,160,23;

  /* ── Dark Palette ── */
  --dark:         #0A0800;
  --dark-2:       #120F00;
  --dark-3:       #1E1A00;
  --dark-4:       #2A2500;

  /* ── Layout ── */
  --sidebar-bg:   #070500;
  --sidebar-w:    260px;
  --navbar-h:     62px;

  /* ── Surface / Text (for cards) ── */
  --bg-card:      #FFFFFF;
  --border:       #E8E2D0;
  --text:         #1A1600;
  --text-2:       #4A4030;
  --text-3:       #9A8E78;

  /* ── Shadows ── */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.15);
  --shadow-sm: 0 2px 6px rgba(0,0,0,.2), 0 1px 2px rgba(0,0,0,.12);
  --shadow:    0 4px 12px rgba(0,0,0,.25), 0 2px 4px rgba(0,0,0,.15);
  --shadow-md: 0 10px 24px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.18);
  --shadow-lg: 0 20px 48px rgba(0,0,0,.4), 0 8px 16px rgba(0,0,0,.2);
  --shadow-gold: 0 4px 20px rgba(212,160,23,.35);

  /* ── Radii ── */
  --r-sm:  8px;
  --r:     12px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-2xl: 24px;
  --r-pill:9999px;

  /* ── Transitions ── */
  --ease:    cubic-bezier(.4,0,.2,1);
  --tx-fast: all .15s var(--ease);
  --tx:      all .2s  var(--ease);
  --tx-slow: all .3s  var(--ease);
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 40%, var(--dark-3) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-size: .875rem;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(212,160,23,.3); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: rgba(212,160,23,.6); }
* { scrollbar-width: thin; scrollbar-color: rgba(212,160,23,.3) transparent; }

/* ── Navbar ─────────────────────────────────────────────── */
.app-navbar {
  height: var(--navbar-h);
  background: rgba(7,5,0,.92);
  border-bottom: 1px solid rgba(212,160,23,.2);
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  gap: .625rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(212,160,23,.08), 0 2px 20px rgba(0,0,0,.4);
  transition: left .28s var(--ease);
}

.nav-toggle {
  width: 38px; height: 38px;
  border: none;
  background: rgba(212,160,23,.06);
  border: 1px solid rgba(212,160,23,.15);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: rgba(212,160,23,.7);
  transition: var(--tx-fast); flex-shrink: 0;
}
.nav-toggle:hover {
  background: rgba(212,160,23,.15);
  color: var(--gold);
  border-color: rgba(212,160,23,.4);
}
.nav-toggle i { font-size: 1.3rem; line-height: 1; }

.nav-brand {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none;
  font-weight: 700; font-size: .95rem;
  white-space: nowrap;
}
.nav-brand .brand-logo {
  width: 36px; height: 36px;
  background: #fff;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 10px rgba(212,160,23,.4);
}
.nav-brand .brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.nav-brand .brand-name {
  background: linear-gradient(90deg, #F5D060, var(--gold), #A87C00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-spacer { flex: 1; min-width: 0; }

.nav-date {
  font-size: .75rem;
  color: rgba(212,160,23,.6);
  white-space: nowrap;
  padding: .3rem .65rem;
  background: rgba(212,160,23,.06);
  border-radius: var(--r-pill);
  border: 1px solid rgba(212,160,23,.15);
}
.nav-clock {
  font-size: .78rem;
  font-weight: 600;
  color: rgba(212,160,23,.9);
  white-space: nowrap;
  padding: .3rem .75rem;
  background: rgba(212,160,23,.1);
  border-radius: var(--r-pill);
  border: 1px solid rgba(212,160,23,.25);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.nav-user {
  display: flex; align-items: center; gap: .55rem;
  padding: .35rem .75rem .35rem .45rem;
  border-radius: var(--r-pill);
  cursor: pointer; text-decoration: none;
  transition: var(--tx-fast);
  border: 1px solid rgba(212,160,23,.15);
  background: rgba(212,160,23,.06);
  color: #F5ECC0;
}
.nav-user:hover {
  background: rgba(212,160,23,.15);
  border-color: rgba(212,160,23,.4);
  color: #FFF3CC;
}
.nav-user .chevron { font-size: .7rem; color: rgba(212,160,23,.5); transition: var(--tx-fast); }
.nav-user[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.nav-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .75rem; flex-shrink: 0;
  box-shadow: 0 0 8px rgba(212,160,23,.4);
}
.nav-user-name { font-weight: 600; font-size: .825rem; line-height: 1.2; }
.nav-user-role { font-size: .68rem; color: rgba(212,160,23,.5); line-height: 1.2; }

/* ── Layout ──────────────────────────────────────────────── */
.layout-wrapper {
  display: flex;
  padding-top: var(--navbar-h);
  min-height: 100vh;
}

/* ── Sidebar Collapsed (desktop) ─────────────────────────── */
body.sidebar-collapsed .sidebar {
  transform: translateX(-100%);
}
body.sidebar-collapsed .app-navbar {
  left: 0;
}
body.sidebar-collapsed .main-content {
  margin-left: 0;
}
body.sidebar-collapsed .nav-brand {
  display: flex !important;
}

/* ── Sidebar Overlay (mobile only) ──────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 1055;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
@media (min-width: 992px) {
  .sidebar-overlay { display: none !important; }
}
.sidebar-overlay.show { display: block; animation: fadeIn .2s var(--ease); }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(212,160,23,.1);
  min-height: 100vh;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 1060;
  transition: transform .28s var(--ease);
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(212,160,23,.15); }

.sidebar-inner { padding: 1rem 0 4rem; }

/* Logo in sidebar */
.sidebar-brand {
  display: flex; align-items: center; gap: .7rem;
  padding: 1rem 1.25rem;
  height: var(--navbar-h);
  border-bottom: 1px solid rgba(212,160,23,.2);
  margin-bottom: .5rem;
  text-decoration: none;
  flex-shrink: 0;
  background: rgba(7,5,0,.5);
}
.sidebar-brand .s-logo {
  width: 36px; height: 36px;
  background: #fff;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 12px rgba(212,160,23,.35);
}
.sidebar-brand .s-logo img { width: 100%; height: 100%; object-fit: contain; }
.sidebar-brand .s-name {
  font-size: .85rem; font-weight: 700;
  background: linear-gradient(90deg, #F5D060, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.sidebar-brand .s-sub {
  font-size: .65rem;
  color: rgba(212,160,23,.45);
  line-height: 1.2;
}

.sidebar-section-label {
  font-size: .62rem; font-weight: 700;
  letter-spacing: .1em; color: rgba(212,160,23,.35);
  padding: .9rem 1.25rem .3rem;
  text-transform: uppercase;
}
.sidebar-section-label:first-of-type { padding-top: .5rem; }

.sidebar-link {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem 1.25rem;
  color: rgba(255,243,204,.4);
  text-decoration: none;
  font-size: .825rem; font-weight: 500;
  transition: var(--tx-fast);
  border-left: 2px solid transparent;
}
.sidebar-link i { font-size: .95rem; min-width: 18px; }
.sidebar-link:hover {
  background: rgba(212,160,23,.06);
  color: rgba(255,243,204,.8);
  border-left-color: rgba(212,160,23,.3);
}
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(212,160,23,.18), rgba(212,160,23,.04));
  color: var(--gold);
  border-left-color: var(--gold);
  font-weight: 600;
}
.sidebar-link.active i { color: #F5D060; }
.sidebar-link.logout-link { color: rgba(248,113,113,.5); }
.sidebar-link.logout-link:hover {
  background: rgba(248,113,113,.07);
  color: #FCA5A5;
  border-left-color: rgba(248,113,113,.4);
}

/* ── Main Content ────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1; min-width: 0;
  color: #F5ECC0;
  transition: margin-left .28s var(--ease);
}
.main-content .container-fluid { padding: 1.5rem 1.75rem; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-lg) !important;
  box-shadow: var(--shadow-sm) !important;
  color: var(--text) !important;
  transition: var(--tx-fast);
}
.card:hover { box-shadow: var(--shadow) !important; }
.card-header {
  background: transparent !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: var(--r-lg) var(--r-lg) 0 0 !important;
  padding: 1rem 1.25rem;
}
.card-body { padding: 1.25rem; }
/* ensure text inside cards is dark */
.card, .card * { color: inherit; }
.card h1,.card h2,.card h3,.card h4,.card h5,.card h6 { color: var(--text); }
.card p, .card span, .card div { color: inherit; }

/* ── Page titles (outside cards, on dark bg) ─────────────── */
.page-h4 { color: #F5ECC0 !important; }
.page-sub { color: rgba(245,236,192,.55) !important; }

/* force page headers visible on dark */
.main-content > .container-fluid > .d-flex h4,
.main-content > .container-fluid > .d-flex p,
.main-content > .container-fluid > div > .d-flex h4,
.main-content > .container-fluid > div > .d-flex p {
  color: #F5ECC0;
}

/* ── Stat Cards ──────────────────────────────────────────── */
.stat-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-lg); color: #fff;
  text-decoration: none; transition: var(--tx);
  position: relative; overflow: hidden;
  border: none !important;
}
.stat-card::before {
  content: ''; position: absolute;
  width: 90px; height: 90px; top: -25%; right: -8%;
  background: rgba(255,255,255,.1); border-radius: 50%;
}
.stat-card::after {
  content: ''; position: absolute;
  width: 60px; height: 60px; bottom: -30%; right: 15%;
  background: rgba(255,255,255,.07); border-radius: 50%;
}
.stat-card:hover { transform: translateY(-3px); filter: brightness(1.07); color: #fff; }
.stat-icon { font-size: 1.9rem; opacity: .85; position: relative; z-index: 1; flex-shrink: 0; }
.stat-body { position: relative; z-index: 1; }
.stat-value { font-size: 1.45rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.stat-label { font-size: .7rem; opacity: .8; margin-top: .2rem; font-weight: 500; }

.stat-blue   {
  background: linear-gradient(135deg, #D4A017, #A87C00);
  box-shadow: 0 4px 20px rgba(212,160,23,.4) !important;
}
.stat-orange {
  background: linear-gradient(135deg, #1E1A00, #2E2800);
  box-shadow: 0 4px 20px rgba(0,0,0,.4) !important;
  border: 1px solid rgba(212,160,23,.2) !important;
}
.stat-orange .stat-value, .stat-orange .stat-label { color: #F5D060; }
.stat-orange .stat-icon { color: var(--gold); }
.stat-green  {
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 4px 20px rgba(16,185,129,.35) !important;
}
.stat-purple {
  background: linear-gradient(135deg, #7B5C00, #5A4200);
  box-shadow: 0 4px 20px rgba(123,92,0,.4) !important;
}

/* ── Quick Link Cards ────────────────────────────────────── */
.quick-link-card { color: inherit; transition: var(--tx); cursor: pointer; }
.quick-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 1px rgba(212,160,23,.2) !important;
  color: inherit;
}
.quick-link-card .bi { display: block; transition: var(--tx-fast); }
.quick-link-card:hover .bi { transform: scale(1.12); }

/* ── Attendance Badge ────────────────────────────────────── */
.att-badge {
  display: flex; flex-direction: column; align-items: center;
  padding: .75rem 1.1rem;
  background: #FAFAF7; border-radius: var(--r);
  border: 1px solid var(--border); min-width: 80px;
}
.att-badge .label { font-size: .63rem; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.att-badge .value { font-size: 1.2rem; font-weight: 700; margin-top: .2rem; }

/* ── Live Clock Display ──────────────────────────────────── */
.live-clock-display {
  display: inline-flex; flex-direction: column; align-items: center;
  background: linear-gradient(135deg, #0A0800 0%, #1E1A00 100%);
  border: 1px solid rgba(212,160,23,.35);
  border-radius: var(--r-lg);
  padding: .85rem 1.4rem;
  box-shadow: 0 0 20px rgba(212,160,23,.15), inset 0 1px 0 rgba(212,160,23,.1);
}
.lcd-time {
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
  background: linear-gradient(90deg, #F5D060, #D4A017);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.lcd-label {
  font-size: .65rem;
  font-weight: 600;
  color: rgba(212,160,23,.5);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: .4rem;
}

/* ── Avatar ──────────────────────────────────────────────── */
.avatar-sm {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .8rem; flex-shrink: 0;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn { font-weight: 500; border-radius: var(--r-sm); transition: var(--tx-fast); font-size: .825rem; }
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: var(--gold-dark); color: var(--dark) !important;
  font-weight: 600;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #E0B020, var(--gold));
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  color: var(--dark) !important;
}
.btn-success { background: #10B981; border-color: #059669; }
.btn-success:hover { background: #059669; border-color: #047857; box-shadow: 0 4px 12px rgba(16,185,129,.3); }
.btn-danger  { background: #DC2626; border-color: #B91C1C; }
.btn-danger:hover { background: #B91C1C; border-color: #991B1B; box-shadow: 0 4px 12px rgba(220,38,38,.3); }
.btn-lg { border-radius: var(--r); padding: .65rem 1.5rem; font-size: .875rem; }
.btn-sm { font-size: .78rem; padding: .3rem .7rem; }
.btn-outline-secondary { border-color: var(--border); color: var(--text-2); }
.btn-outline-secondary:hover { background: #F8F5EE; border-color: var(--text-3); color: var(--text); }

/* ── Forms ───────────────────────────────────────────────── */
.form-control, .form-select {
  border-radius: var(--r-sm); border-color: var(--border);
  font-size: .875rem; color: var(--text);
  transition: var(--tx-fast); background: #FAFAF7;
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb),.15);
  background: #fff;
}
.form-label {
  font-weight: 600; font-size: .78rem;
  color: var(--text-2); margin-bottom: .4rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.input-group-text { background: #F8F5EE; border-color: var(--border); color: var(--text-3); }
.form-text { font-size: .75rem; color: var(--text-3); }

/* ── Tables ──────────────────────────────────────────────── */
.table { font-size: .825rem; --bs-table-hover-bg: #FAFAF7; }
.table > :not(caption) > * > * { padding: .75rem 1rem; vertical-align: middle; border-color: var(--border); }
.table thead th {
  font-weight: 700; font-size: .7rem;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-3); background: #FAF8F2;
  border-bottom: 1px solid var(--border) !important;
  white-space: nowrap;
}

/* ── Alerts ──────────────────────────────────────────────── */
.alert { border-radius: var(--r); border: none; font-size: .875rem; font-weight: 500; }
.alert-success { background: #F0FDF4; color: #15803D; }
.alert-danger  { background: #FEF2F2; color: #B91C1C; }
.alert-warning { background: #FFFBEB; color: #92400E; }
.alert-info    { background: #EFF6FF; color: #1D4ED8; }

/* ── Badges ──────────────────────────────────────────────── */
.badge { font-weight: 600; font-size: .7rem; letter-spacing: .02em; }
.bg-success-subtle { background-color: #DCFCE7 !important; }
.bg-danger-subtle  { background-color: #FEE2E2 !important; }
.bg-primary-subtle { background-color: #FFF3CC !important; }
.bg-warning-subtle { background-color: #FEF9C3 !important; }
.bg-info-subtle    { background-color: #E0F2FE !important; }
.text-primary      { color: var(--gold) !important; }
.text-success      { color: #16A34A !important; }
.text-danger       { color: #DC2626 !important; }
.text-warning      { color: #D97706 !important; }
.text-info         { color: #0284C7 !important; }
.text-muted        { color: var(--text-3) !important; }

/* ── Progress ────────────────────────────────────────────── */
.progress { background: #E8E2D0; border-radius: var(--r-pill); }
.progress-bar { border-radius: var(--r-pill); transition: width .6s var(--ease); }

/* ── Modals ──────────────────────────────────────────────── */
.modal-content { border-radius: var(--r-xl); border: none; box-shadow: var(--shadow-lg); }
.modal-header { border-bottom: 1px solid var(--border); padding: 1.25rem 1.5rem; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.modal-body   { padding: 1.5rem; }
.modal-footer { border-top: 1px solid var(--border); padding: 1rem 1.5rem; }

/* ── Dropdown ────────────────────────────────────────────── */
.dropdown-menu {
  border: 1px solid rgba(212,160,23,.15);
  border-radius: var(--r); background: #100D00;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); padding: .4rem; font-size: .875rem;
}
.dropdown-item { border-radius: var(--r-sm); padding: .5rem .75rem; color: rgba(245,236,192,.75); transition: var(--tx-fast); }
.dropdown-item:hover { background: rgba(212,160,23,.1); color: #F5ECC0; }
.dropdown-item.text-danger { color: #F87171 !important; }
.dropdown-item.text-danger:hover { background: rgba(248,113,113,.1); }
.dropdown-divider { border-color: rgba(212,160,23,.1); margin: .3rem 0; }

/* ── Package Option ──────────────────────────────────────── */
.package-option { cursor: pointer; transition: var(--tx-fast); }
.package-option:hover { border-color: var(--gold) !important; box-shadow: 0 0 0 3px rgba(212,160,23,.15); }

/* ── Login Page ──────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: linear-gradient(160deg, #000000 0%, #0D0A00 30%, #1A1300 60%, #0A0800 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; position: relative; overflow: hidden;
}
.login-page::before {
  content: ''; position: absolute;
  width: 700px; height: 700px; top: -20%; left: -10%;
  background: radial-gradient(circle, rgba(212,160,23,.12) 0%, transparent 65%);
  border-radius: 50%;
}
.login-page::after {
  content: ''; position: absolute;
  width: 500px; height: 500px; bottom: -20%; right: -5%;
  background: radial-gradient(circle, rgba(212,160,23,.08) 0%, transparent 65%);
  border-radius: 50%;
}
/* Two-panel login card */
.login-card {
  width: 100%; max-width: 900px;
  display: flex;
  border: 1px solid rgba(212,160,23,.2);
  border-radius: var(--r-2xl);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 40px rgba(212,160,23,.08), inset 0 1px 0 rgba(212,160,23,.15);
  position: relative; z-index: 1;
  overflow: hidden;
}

/* Left branding panel */
.login-brand-panel {
  flex: 1;
  background: linear-gradient(160deg, rgba(212,160,23,.18) 0%, rgba(212,160,23,.06) 50%, rgba(20,16,0,.6) 100%);
  border-right: 1px solid rgba(212,160,23,.15);
  display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 2rem;
}
.login-brand-inner { text-align: center; }
.login-brand-title {
  font-size: 1.35rem; font-weight: 800;
  color: #F5ECC0; line-height: 1.3;
  letter-spacing: -.01em; margin: 1rem 0 .35rem;
}
.login-brand-sub {
  font-size: .78rem; color: rgba(212,160,23,.55);
  margin-bottom: 2rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em;
}
.login-feature-list {
  list-style: none; padding: 0; margin: 0;
  text-align: left; display: flex; flex-direction: column; gap: .9rem;
}
.login-feature-list li {
  display: flex; align-items: flex-start; gap: .75rem;
}
.lf-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  background: rgba(212,160,23,.12);
  border: 1px solid rgba(212,160,23,.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1rem;
}
.login-feature-list strong {
  display: block; font-size: .82rem; font-weight: 700;
  color: #F5ECC0; line-height: 1.2; margin-bottom: .15rem;
}
.login-feature-list span {
  font-size: .74rem; color: rgba(212,160,23,.45); line-height: 1.35;
}

/* Right form panel */
.login-form-panel {
  flex: 1;
  background: rgba(20,16,0,.96);
  display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.login-form-inner { width: 100%; max-width: 340px; }

.login-logo-wrap {
  width: 80px; height: 80px;
  background: rgba(255,255,255,.95);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 32px rgba(212,160,23,.45), 0 0 0 1px rgba(212,160,23,.3);
  overflow: hidden;
}
.login-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }

/* login input */
.login-input {
  height: 46px; border-radius: 10px;
  border: 1.5px solid rgba(212,160,23,.2);
  padding: .6rem 1rem .6rem 2.6rem;
  font-size: .875rem; color: #F5ECC0;
  background: rgba(212,160,23,.05);
  transition: var(--tx-fast); width: 100%;
}
.login-input::placeholder { color: rgba(212,160,23,.3); }
.login-input:focus {
  background: rgba(212,160,23,.08);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,160,23,.15);
  outline: none; color: #FFF3CC;
}
.input-icon-wrap { position: relative; }
.input-icon-wrap .icon-left {
  position: absolute; left: .85rem; top: 50%;
  transform: translateY(-50%);
  color: rgba(212,160,23,.5); font-size: 1rem; pointer-events: none;
}
.input-icon-wrap .btn-eye {
  position: absolute; right: .6rem; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; color: rgba(212,160,23,.4);
  cursor: pointer; padding: .2rem .4rem;
  border-radius: 6px; transition: var(--tx-fast);
}
.input-icon-wrap .btn-eye:hover { color: var(--gold); }

.btn-login {
  height: 46px; font-weight: 700; font-size: .9rem;
  border-radius: 10px; border: none; width: 100%;
  background: linear-gradient(135deg, #F5D060 0%, var(--gold) 50%, var(--gold-dark) 100%);
  color: var(--dark) !important; letter-spacing: .02em;
  transition: var(--tx);
  box-shadow: 0 4px 20px rgba(212,160,23,.4);
}
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212,160,23,.55);
  filter: brightness(1.05);
}
.btn-login:active { transform: translateY(0); }

.demo-chip {
  display: inline-block; padding: .2rem .6rem;
  background: rgba(212,160,23,.1);
  border: 1px solid rgba(212,160,23,.2);
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: .72rem; color: rgba(212,160,23,.8);
  font-weight: 600; white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .login-card { flex-direction: column; max-width: 440px; }
  .login-brand-panel {
    border-right: none;
    border-bottom: 1px solid rgba(212,160,23,.15);
    padding: 2rem 1.5rem;
  }
  .login-feature-list { display: none; }
  .login-brand-sub { margin-bottom: 0; }
  .login-form-panel { padding: 2rem 1.5rem; }
}

@media (max-width: 1199.98px) {
  :root { --sidebar-w: 245px; }
}

/* Desktop: nav-brand hanya muncul saat sidebar collapsed */
@media (min-width: 992px) {
  .nav-brand { display: none !important; }
}

@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
    top: 0;
    z-index: 1060;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 40px rgba(0,0,0,.6);
  }
  .app-navbar {
    left: 0 !important;
    transition: none;
  }
  .main-content {
    margin-left: 0 !important;
    transition: none;
  }
  /* Reset collapsed state on mobile */
  body.sidebar-collapsed .sidebar { transform: translateX(-100%); }
  body.sidebar-collapsed .sidebar.open { transform: translateX(0); }
}

@media (max-width: 767.98px) {
  .main-content .container-fluid { padding: 1rem .875rem; }
  .stat-card { padding: 1rem 1.1rem; }
  .stat-value { font-size: 1.2rem; }
  .stat-icon { font-size: 1.6rem; }
  .card-body { padding: 1rem; }
}

@media (max-width: 575.98px) {
  .app-navbar { padding: 0 .75rem; }
  .nav-user-info { display: none !important; }
  .nav-user { padding: .35rem .45rem; }
  .nav-date { display: none !important; }
  .nav-clock { display: none !important; }
}
