/* ============================================================
   RAMPUR POLICE DIGITAL PORTAL - MAIN STYLESHEET
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Noto+Sans+Devanagari:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --primary:    #0a1628;
    --primary-2:  #0d1f3c;
    --accent:     #c8960c;
    --accent-2:   #f5b800;
    --blue:       #1a4f9e;
    --blue-light: #2563eb;
    --red:        #c0392b;
    --green:      #16a34a;
    --teal:       #0d9488;
    --white:      #ffffff;
    --off-white:  #f8fafc;
    --gray-100:   #f1f5f9;
    --gray-200:   #e2e8f0;
    --gray-300:   #cbd5e1;
    --gray-500:   #64748b;
    --gray-700:   #334155;
    --gray-900:   #0f172a;
    --shadow-sm:  0 1px 3px rgba(0,0,0,.12);
    --shadow:     0 4px 16px rgba(0,0,0,.12);
    --shadow-lg:  0 8px 32px rgba(0,0,0,.18);
    --radius:     10px;
    --radius-lg:  16px;
    --transition: all .2s ease;
    --font-hindi: 'Noto Sans Devanagari', sans-serif;
    --font-main:  'Rajdhani', sans-serif;
    --font-mono:  'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-hindi);
    background: var(--gray-100);
    color: var(--gray-900);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================================
   TOPBAR / HEADER
   ============================================================ */
.topbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 50%, var(--blue) 100%);
    border-bottom: 3px solid var(--accent);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.brand-logo {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary);
    box-shadow: 0 0 0 3px rgba(200,150,12,.3);
    flex-shrink: 0;
}

.brand-text h1 {
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: .5px;
}

.brand-text p {
    font-size: .75rem;
    color: var(--accent-2);
    letter-spacing: 1px;
    font-family: var(--font-main);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.officer-pill {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50px;
    padding: .4rem 1rem .4rem .5rem;
    color: white;
}

.officer-avatar {
    width: 32px; height: 32px;
    background: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    color: var(--primary);
    font-size: .9rem;
}

.officer-pill-text { font-size: .78rem; line-height: 1.3; }
.officer-pill-text strong { display: block; font-size: .85rem; color: var(--accent-2); }

.btn-logout {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: white;
    padding: .4rem .9rem;
    border-radius: 6px;
    font-size: .8rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    display: flex; align-items: center; gap: .4rem;
}
.btn-logout:hover { background: rgba(255,255,255,.2); color: white; }

/* ============================================================
   LAYOUT
   ============================================================ */
.layout { display: flex; min-height: calc(100vh - 68px); }

.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--primary);
    border-right: 1px solid rgba(255,255,255,.06);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 68px;
    height: calc(100vh - 68px);
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

.sidebar-section { padding: .5rem 0; }
.sidebar-section-label {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,.35);
    padding: .6rem 1.2rem .3rem;
    font-family: var(--font-main);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .55rem 1.2rem;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: .82rem;
    border-left: 3px solid transparent;
    transition: var(--transition);
    font-family: var(--font-hindi);
}

.nav-link i { width: 16px; text-align: center; font-size: .85rem; color: rgba(255,255,255,.4); }
.nav-link:hover { color: white; background: rgba(255,255,255,.06); border-left-color: rgba(200,150,12,.5); }
.nav-link:hover i { color: var(--accent); }
.nav-link.active { color: var(--accent-2); background: rgba(200,150,12,.12); border-left-color: var(--accent); }
.nav-link.active i { color: var(--accent-2); }

.sidebar-divider { height: 1px; background: rgba(255,255,255,.07); margin: .3rem 0; }

.main-content {
    flex: 1;
    overflow: hidden;
    padding: 1.5rem;
    max-width: calc(100vw - 240px);
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.page-title h2 {
    font-family: var(--font-main);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: .5px;
}

.page-title p { color: var(--gray-500); font-size: .82rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--off-white);
}

.card-title {
    font-family: var(--font-main);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.card-title i { color: var(--blue-light); }
.card-body { padding: 1.5rem; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.4rem;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
}

.stat-card.blue::before { background: var(--blue-light); }
.stat-card.red::before { background: var(--red); }
.stat-card.green::before { background: var(--green); }
.stat-card.gold::before { background: var(--accent); }
.stat-card.teal::before { background: var(--teal); }
.stat-card.purple::before { background: #7c3aed; }

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

.stat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-card.blue .stat-icon { background: #eff6ff; color: var(--blue-light); }
.stat-card.red .stat-icon { background: #fef2f2; color: var(--red); }
.stat-card.green .stat-icon { background: #f0fdf4; color: var(--green); }
.stat-card.gold .stat-icon { background: #fefce8; color: var(--accent); }
.stat-card.teal .stat-icon { background: #f0fdfa; color: var(--teal); }
.stat-card.purple .stat-icon { background: #f5f3ff; color: #7c3aed; }

.stat-info h3 { font-size: .75rem; color: var(--gray-500); font-weight: 500; margin-bottom: .2rem; }
.stat-info .number {
    font-family: var(--font-main);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.stat-info .sub { font-size: .7rem; color: var(--gray-500); margin-top: .15rem; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrapper { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }

thead th {
    background: var(--primary);
    color: rgba(255,255,255,.85);
    padding: .75rem 1rem;
    text-align: left;
    font-size: .75rem;
    font-family: var(--font-main);
    font-weight: 600;
    letter-spacing: .5px;
    white-space: nowrap;
}

tbody tr { border-bottom: 1px solid var(--gray-200); transition: var(--transition); }
tbody tr:hover { background: var(--off-white); }
tbody tr:last-child { border-bottom: none; }

td {
    padding: .75rem 1rem;
    font-size: .82rem;
    color: var(--gray-700);
    vertical-align: middle;
}

.ps-name { font-weight: 600; color: var(--primary); }
.circle-badge {
    font-size: .68rem;
    background: #eff6ff;
    color: var(--blue-light);
    padding: .15rem .5rem;
    border-radius: 20px;
    font-weight: 600;
    font-family: var(--font-main);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .2rem .65rem;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 600;
    font-family: var(--font-main);
    letter-spacing: .3px;
}

.badge-warning { background: #fef9c3; color: #92400e; }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-info    { background: #e0f2fe; color: #0369a1; }
.badge-primary { background: #eff6ff; color: var(--blue-light); }
.badge-secondary { background: var(--gray-200); color: var(--gray-700); }

/* ============================================================
   FORMS
   ============================================================ */
.form-grid { display: grid; gap: 1rem; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-grid-4 { grid-template-columns: repeat(4, 1fr); }

.form-group { display: flex; flex-direction: column; gap: .35rem; }

label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--gray-700);
    font-family: var(--font-main);
    letter-spacing: .3px;
}

input, select, textarea {
    width: 100%;
    padding: .6rem .9rem;
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    font-size: .85rem;
    font-family: var(--font-hindi);
    color: var(--gray-900);
    background: white;
    transition: var(--transition);
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

input[readonly], input[disabled] {
    background: var(--gray-100);
    color: var(--gray-500);
    cursor: not-allowed;
}

textarea { min-height: 80px; resize: vertical; }

.form-hint { font-size: .72rem; color: var(--gray-500); margin-top: .2rem; }

/* Number input for hardware */
.qty-input { width: 80px; text-align: center; padding: .5rem; }
.qty-row { display: flex; align-items: center; gap: .5rem; }
.qty-row label { min-width: 120px; margin: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.2rem;
    border-radius: 8px;
    font-size: .82rem;
    font-family: var(--font-main);
    font-weight: 600;
    letter-spacing: .3px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary { background: var(--blue-light); color: white; }
.btn-primary:hover { background: var(--blue); color: white; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,.3); }

.btn-gold { background: var(--accent); color: white; }
.btn-gold:hover { background: #b8850a; color: white; }

.btn-success { background: var(--green); color: white; }
.btn-success:hover { background: #15803d; color: white; }

.btn-danger { background: var(--red); color: white; }
.btn-danger:hover { background: #922b21; color: white; }

.btn-outline {
    background: white;
    color: var(--gray-700);
    border: 1.5px solid var(--gray-300);
}
.btn-outline:hover { border-color: var(--blue-light); color: var(--blue-light); }

.btn-sm { padding: .3rem .7rem; font-size: .75rem; }
.btn-lg { padding: .75rem 1.8rem; font-size: .95rem; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: .8rem 1.2rem;
    border-radius: 8px;
    font-size: .83rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    border-left: 4px solid;
}

.alert-success { background: #f0fdf4; color: #166534; border-color: var(--green); }
.alert-danger  { background: #fef2f2; color: #991b1b; border-color: var(--red); }
.alert-warning { background: #fefce8; color: #92400e; border-color: #ca8a04; }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: var(--blue-light); }

/* ============================================================
   PORTAL CARDS (Homepage)
   ============================================================ */
.portal-section { margin-bottom: 2rem; }
.section-heading {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--gray-200);
}

.section-heading h3 {
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.section-heading .section-icon {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--primary), var(--blue));
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: .9rem;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .75rem;
}

.portal-card {
    background: white;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    padding: .9rem .7rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--gray-700);
    display: block;
}

.portal-card:hover {
    border-color: var(--blue-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: var(--primary);
}

.portal-card-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto .6rem;
    font-size: 1.1rem;
    color: var(--blue-light);
    transition: var(--transition);
}

.portal-card:hover .portal-card-icon {
    background: linear-gradient(135deg, var(--primary), var(--blue));
    color: white;
}

.portal-card h4 { font-size: .78rem; font-weight: 700; font-family: var(--font-main); line-height: 1.3; }
.portal-card p  { font-size: .65rem; color: var(--gray-500); margin-top: .2rem; line-height: 1.3; }

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-container i {
    position: absolute;
    left: 1rem; top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 1rem;
}

.search-input {
    width: 100%;
    padding: .75rem 1rem .75rem 2.8rem;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    font-size: .9rem;
    background: white;
    transition: var(--transition);
    font-family: var(--font-hindi);
}

.search-input:focus {
    border-color: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
    outline: none;
}

/* ============================================================
   QUICK LAUNCH BAR
   ============================================================ */
.quick-bar {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.quick-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .85rem;
    border-radius: 50px;
    font-size: .75rem;
    font-family: var(--font-main);
    font-weight: 600;
    background: white;
    border: 1.5px solid var(--gray-200);
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.quick-chip:hover, .quick-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--accent-2);
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 60%, var(--blue) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,150,12,.08) 0%, transparent 70%);
    top: -200px; right: -200px;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,.1) 0%, transparent 70%);
    bottom: -100px; left: -100px;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    position: relative;
    z-index: 1;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo-circle {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--blue));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    border: 4px solid var(--accent);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.login-logo-circle span {
    font-family: var(--font-main);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-2);
}

.login-logo h2 {
    font-family: var(--font-main);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.login-logo p { font-size: .8rem; color: var(--gray-500); }

.login-submit {
    width: 100%;
    padding: .8rem;
    background: linear-gradient(135deg, var(--primary), var(--blue));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-main);
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1.2rem;
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,99,235,.4);
}

/* ============================================================
   MONITORING TABLE (Special styling)
   ============================================================ */
.monitor-high { color: var(--red); font-weight: 700; }
.monitor-mid  { color: #d97706; font-weight: 600; }
.monitor-low  { color: var(--green); font-weight: 600; }
.monitor-zero { color: var(--gray-500); }

.progress-mini {
    height: 5px;
    border-radius: 3px;
    background: var(--gray-200);
    overflow: hidden;
    margin-top: .3rem;
    min-width: 80px;
}

.progress-mini-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--blue-light), var(--teal));
}

/* ============================================================
   NOTICE TICKER
   ============================================================ */
.notice-ticker {
    background: var(--primary);
    color: var(--accent-2);
    padding: .3rem 0;
    overflow: hidden;
    font-size: .78rem;
    font-family: var(--font-main);
    letter-spacing: .3px;
    border-bottom: 1px solid rgba(200,150,12,.2);
}

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 0;
}

.ticker-label {
    background: var(--accent);
    color: var(--primary);
    padding: .3rem .8rem;
    font-weight: 700;
    flex-shrink: 0;
    font-size: .75rem;
}

.ticker-text {
    overflow: hidden;
    flex: 1;
    padding: 0 1rem;
}

.ticker-scroll {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .sidebar { width: 200px; }
    .main-content { max-width: calc(100vw - 200px); }
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { max-width: 100vw; padding: 1rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .form-grid-2, .form-grid-3, .form-grid-4 { grid-template-columns: 1fr; }
    .portal-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
    .brand-text h1 { font-size: .95rem; }
    .topbar-right .officer-pill { display: none; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.d-flex      { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.w-100 { width: 100%; }
.fw-bold { font-weight: 700; }
.text-muted { color: var(--gray-500); }
.text-small { font-size: .75rem; }
.hidden { display: none !important; }

/* Hardware qty table */
.hw-table { width: 100%; }
.hw-table td { padding: .5rem; font-size: .85rem; }
.hw-table .hw-icon { font-size: 1.1rem; color: var(--blue-light); }

/* Status action buttons */
.action-btns { display: flex; gap: .4rem; flex-wrap: wrap; }

/* Demand detail card */
.detail-section { background: var(--off-white); border-radius: 10px; padding: 1rem; margin-bottom: 1rem; }
.detail-row { display: flex; gap: 1rem; margin-bottom: .5rem; }
.detail-label { font-weight: 600; color: var(--gray-700); min-width: 140px; font-size: .8rem; }
.detail-value { color: var(--gray-900); font-size: .82rem; }

/* Timeline for demand status */
.timeline { padding: 0; list-style: none; position: relative; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: var(--gray-200); }
.timeline-item { padding: .7rem 0 .7rem 40px; position: relative; }
.timeline-icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    position: absolute;
    left: 0; top: .6rem;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem;
    z-index: 1;
}
.timeline-icon.done { background: var(--green); color: white; }
.timeline-icon.pending { background: var(--gray-200); color: var(--gray-500); }
.timeline-icon.active { background: var(--blue-light); color: white; }
.timeline-title { font-weight: 600; font-size: .82rem; color: var(--primary); }
.timeline-sub { font-size: .73rem; color: var(--gray-500); }

/* Tabbed content */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--gray-200); margin-bottom: 1.5rem; }
.tab-btn {
    padding: .6rem 1.2rem;
    font-size: .82rem;
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--gray-500);
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}
.tab-btn.active { color: var(--blue-light); border-bottom-color: var(--blue-light); }
.tab-btn:hover { color: var(--primary); }

.tab-content { display: none; }
.tab-content.active { display: block; }
