/* ============================================
   Griya Makmur Sehat — Traditional Chinese Clinic
   Design System: East-Asian Apothecary
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;500;600;700&family=Noto+Serif+SC:wght@400;600;700&display=swap');

:root {
  /* Core Palette */
  --crimson: #8B1A1A;
  --crimson-dark: #5C1010;
  --crimson-light: #B83030;
  --gold: #C4973B;
  --gold-light: #E8C96A;
  --gold-pale: #F5E6C8;
  --ivory: #FAF6F0;
  --ivory-dark: #F0E8DA;
  --charcoal: #2A2A2A;
  --ink: #1A1A1A;
  --ink-light: #4A4A4A;
  --ink-faint: #8A8A7A;
  --jade: #2D6B4F;
  --jade-light: #3D8B6A;
  --jade-pale: #E8F5EE;
  --earth: #6B4E3D;
  --earth-light: #8B6E5D;
  --warm-white: #FFFDF8;
  --red-pale: #FFF0F0;
  --border-color: #E5DDD0;
  --shadow-warm: rgba(139, 26, 26, 0.08);
  --shadow-gold: rgba(196, 151, 59, 0.15);

  /* Typography */
  --font-display: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

  /* Spacing */
  --sidebar-width: 260px;
  --header-height: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--ivory);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
}

a { color: var(--crimson); text-decoration: none; }
a:hover { color: var(--crimson-light); }

::selection {
  background: var(--gold-pale);
  color: var(--crimson-dark);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ivory-dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139,26,26,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(196,151,59,0.08) 0%, transparent 50%),
    var(--ivory);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border: 1px solid var(--gold-pale);
  border-radius: 50%;
  opacity: 0.5;
}

.login-page::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -80px;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(139,26,26,0.08);
  border-radius: 50%;
}

.login-card {
  background: var(--warm-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow:
    0 4px 24px var(--shadow-warm),
    0 1px 3px rgba(0,0,0,0.04);
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s ease-out;
}

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

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo .logo-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px var(--shadow-warm);
}

.login-logo .logo-icon i {
  font-size: 28px;
  color: var(--gold-light);
}

.login-logo h1 {
  font-size: 1.35rem;
  color: var(--crimson-dark);
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}

.login-logo p {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.login-divider {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 28px;
  border: none;
}

/* ---- Form Controls (Global) ---- */
.form-control, .form-select {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--warm-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--shadow-gold);
  outline: none;
}

.form-label {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

/* ---- Buttons ---- */
.btn-crimson {
  background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
  color: #fff;
  border: none;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all 0.25s;
  box-shadow: 0 2px 8px var(--shadow-warm);
}

.btn-crimson:hover {
  background: linear-gradient(135deg, var(--crimson-light), var(--crimson));
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--shadow-warm);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--ink);
  border: none;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s;
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--shadow-gold);
}

.btn-outline-crimson {
  border: 1.5px solid var(--crimson);
  color: var(--crimson);
  background: transparent;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s;
}

.btn-outline-crimson:hover {
  background: var(--crimson);
  color: #fff;
}

.btn-jade {
  background: linear-gradient(135deg, var(--jade), var(--jade-light));
  color: #fff;
  border: none;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.25s;
}

.btn-jade:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45,107,79,0.2);
  color: #fff;
}

/* ============================================
   LAYOUT — Sidebar + Content
   ============================================ */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, var(--crimson-dark) 0%, #3A0C0C 100%);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: transform 0.3s;
}

.sidebar-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(196,151,59,0.15);
}

.sidebar-brand .brand-icon {
  width: 42px;
  height: 42px;
  background: rgba(196,151,59,0.15);
  border: 1px solid rgba(196,151,59,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.sidebar-brand .brand-icon i {
  font-size: 20px;
  color: var(--gold-light);
}

.sidebar-brand h5 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 2px;
  font-family: var(--font-display);
}

.sidebar-brand small {
  color: rgba(255,255,255,0.45);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Nav */
.sidebar-nav {
  padding: 16px 0;
  flex: 1;
}

.sidebar-nav .nav-section {
  padding: 0 20px;
  margin-bottom: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
  margin-top: 20px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  text-decoration: none;
}

.sidebar-nav .nav-link i {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
}

.sidebar-nav .nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.sidebar-nav .nav-link.active {
  color: var(--gold-light);
  background: rgba(196,151,59,0.08);
  border-left-color: var(--gold);
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-footer .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-footer .user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(196,151,59,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--gold-light);
}

.sidebar-footer .user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.sidebar-footer .user-role {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}

/* ---- Main Content ---- */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
}

/* ---- Top Header ---- */
.top-header {
  height: var(--header-height);
  background: var(--warm-white);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-header .page-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.top-header .header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-actions .notif-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--warm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  color: var(--ink-light);
}

.header-actions .notif-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.header-actions .notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: var(--crimson);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-actions .date-display {
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.header-actions .date-display i {
  margin-right: 6px;
  color: var(--gold);
}

/* ---- Page Body ---- */
.page-body {
  padding: 28px;
}

/* ============================================
   DASHBOARD CARDS
   ============================================ */
.stat-card {
  background: var(--warm-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-warm);
}

.stat-card.crimson::before { background: var(--crimson); }
.stat-card.gold::before { background: var(--gold); }
.stat-card.jade::before { background: var(--jade); }
.stat-card.earth::before { background: var(--earth); }

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.stat-card.crimson .stat-icon { background: var(--red-pale); color: var(--crimson); }
.stat-card.gold .stat-icon { background: var(--gold-pale); color: var(--gold); }
.stat-card.jade .stat-icon { background: var(--jade-pale); color: var(--jade); }
.stat-card.earth .stat-icon { background: #F5EDE8; color: var(--earth); }

.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--ink-faint);
  font-weight: 500;
}

.stat-card .stat-change {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 8px;
}

.stat-card .stat-change.up { color: var(--jade); }
.stat-card .stat-change.down { color: var(--crimson); }

/* ============================================
   DATA TABLES
   ============================================ */
.data-card {
  background: var(--warm-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.data-card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, var(--warm-white), var(--ivory));
}

.data-card-header h5 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.data-table {
  width: 100%;
  font-size: 0.88rem;
}

.data-table thead th {
  background: var(--ivory);
  padding: 11px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 12px 18px;
  border-bottom: 1px solid #F0EBE3;
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: rgba(196,151,59,0.03);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ---- Badges ---- */
.badge-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-status.waiting { background: #FFF8E1; color: #B8860B; }
.badge-status.in-progress { background: #E3F2FD; color: #1565C0; }
.badge-status.done { background: var(--jade-pale); color: var(--jade); }
.badge-status.cancelled { background: #FFEAEA; color: var(--crimson); }
.badge-status.new { background: #F3E5F5; color: #7B1FA2; }

/* ---- Patient Avatar ---- */
.patient-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  color: #fff;
  flex-shrink: 0;
}

.patient-avatar.male { background: linear-gradient(135deg, #5B7FA5, #3D5A80); }
.patient-avatar.female { background: linear-gradient(135deg, #C07070, #8B4545); }

/* ============================================
   FORMS & MODALS
   ============================================ */
.form-section {
  background: var(--warm-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
}

.form-section-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--crimson-dark);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section-title i {
  color: var(--gold);
}

/* ---- Prescription Card ---- */
.prescription-item {
  background: var(--ivory);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s;
}

.prescription-item:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 8px var(--shadow-gold);
}

.prescription-item .herb-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--jade-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jade);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.prescription-item .herb-info {
  flex: 1;
}

.prescription-item .herb-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.prescription-item .herb-detail {
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.prescription-item .herb-dose {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--jade);
  white-space: nowrap;
}

/* ============================================
   INVOICE / RECEIPT
   ============================================ */
.invoice-card {
  background: var(--warm-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  max-width: 520px;
  margin: 0 auto;
  overflow: hidden;
}

.invoice-header {
  background: linear-gradient(135deg, var(--crimson-dark), var(--crimson));
  color: #fff;
  padding: 24px;
  text-align: center;
}

.invoice-header h4 {
  color: var(--gold-light);
  font-family: var(--font-display);
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.invoice-header p {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}

.invoice-body {
  padding: 24px;
}

.invoice-meta {
  display: flex;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border-color);
  margin-bottom: 16px;
  font-size: 0.82rem;
}

.invoice-meta dt {
  color: var(--ink-faint);
  font-weight: 500;
}

.invoice-meta dd {
  color: var(--ink);
  font-weight: 600;
  margin: 0;
}

.invoice-items {
  margin-bottom: 16px;
}

.invoice-items table {
  width: 100%;
  font-size: 0.85rem;
}

.invoice-items th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.invoice-items td {
  padding: 8px 0;
  border-bottom: 1px solid #F0EBE3;
}

.invoice-total {
  background: var(--ivory);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.invoice-total .label {
  font-weight: 600;
  color: var(--ink-light);
  font-size: 0.9rem;
}

.invoice-total .amount {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--crimson);
}

/* ============================================
   SCHEDULE / TIMELINE
   ============================================ */
.schedule-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #F0EBE3;
  align-items: flex-start;
}

.schedule-item:last-child { border-bottom: none; }

.schedule-time {
  min-width: 60px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--crimson);
  padding-top: 2px;
}

.schedule-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 6px;
  flex-shrink: 0;
  position: relative;
}

.schedule-dot::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 4px;
  width: 2px;
  height: calc(100% + 18px);
  background: var(--border-color);
}

.schedule-item:last-child .schedule-dot::after { display: none; }

.schedule-info h6 {
  margin: 0 0 2px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.schedule-info p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* ============================================
   PHARMACY QUEUE
   ============================================ */
.queue-card {
  background: var(--warm-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 14px;
  transition: all 0.2s;
  position: relative;
}

.queue-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px var(--shadow-gold);
}

.queue-card .queue-number {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-pale);
}

.queue-card .queue-patient {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.queue-card .queue-doctor {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.queue-card .queue-herbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.queue-card .herb-tag {
  padding: 3px 10px;
  background: var(--jade-pale);
  color: var(--jade);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* ============================================
   RESPONSIVE
   ============================================ */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--ink-light);
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,0.2);
  }
  .main-content {
    margin-left: 0;
  }
  .sidebar-toggle {
    display: block;
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
  }
  .sidebar-overlay.show {
    display: block;
  }
}

@media (max-width: 575px) {
  .page-body { padding: 16px; }
  .top-header { padding: 0 16px; }
  .stat-card { padding: 16px; }
  .stat-card .stat-value { font-size: 1.4rem; }
}

/* ============================================
   ANIMATION HELPERS
   ============================================ */
.fade-in {
  animation: fadeUp 0.5s ease-out both;
}

.fade-in-delay-1 { animation-delay: 0.08s; }
.fade-in-delay-2 { animation-delay: 0.16s; }
.fade-in-delay-3 { animation-delay: 0.24s; }
.fade-in-delay-4 { animation-delay: 0.32s; }

/* Medical Record History */
.history-card {
  border-left: 3px solid var(--gold);
  background: var(--ivory);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.history-card .history-date {
  font-size: 0.75rem;
  color: var(--ink-faint);
  font-weight: 600;
}

.history-card .history-diagnosis {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9rem;
  margin: 4px 0;
}

.history-card .history-notes {
  font-size: 0.82rem;
  color: var(--ink-light);
}

/* Tabs custom */
.nav-tabs-custom {
  border-bottom: 2px solid var(--border-color);
}

.nav-tabs-custom .nav-link {
  border: none;
  color: var(--ink-faint);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 20px;
  position: relative;
}

.nav-tabs-custom .nav-link.active {
  color: var(--crimson);
  background: none;
}

.nav-tabs-custom .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--crimson);
}

/* Search input */
.search-input {
  position: relative;
}

.search-input i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.search-input .form-control {
  padding-left: 36px;
}

/* Today Highlight */
.today-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-pale);
  color: var(--gold);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
