:root {
    --primary: #0D6EFD;
    --secondary: #1E3A8A;
    --bg-light: #F8FAFC;
}

body {
    background-color: var(--bg-light);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.bg-primary { background-color: var(--primary) !important; }
.text-primary { color: var(--primary) !important; }
.btn-primary { background-color: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background-color: var(--secondary); border-color: var(--secondary); }

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    padding: 80px 0 60px;
}

.hero-section h1 { font-size: 2.5rem; font-weight: 700; }
.hero-section p { font-size: 1.15rem; opacity: 0.9; }

/* Service Cards */
.service-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.15);
}
.service-card .icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Notice Cards */
.notice-card {
    border-left: 4px solid var(--primary);
    border-radius: 8px;
}

/* Section Titles */
.section-title {
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Dashboard Sidebar */
.dashboard-body { overflow-x: hidden; }
.sidebar {
    width: 260px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s;
}
.sidebar-link {
    color: rgba(255,255,255,0.75) !important;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 2px;
    transition: all 0.2s;
}
.sidebar-link:hover, .sidebar-link.active {
    color: white !important;
    background: rgba(13, 110, 253, 0.3);
}
.sidebar-link i { margin-right: 10px; width: 20px; }

.dashboard-content { margin-left: 260px; min-height: calc(100vh - 60px); }
.dashboard-topbar { position: sticky; top: 0; z-index: 999; }

@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .dashboard-content { margin-left: 0; }
}

/* Stat Cards */
.stat-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Timeline */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}
.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary);
}
.timeline-item.completed::before { background: #198754; box-shadow: 0 0 0 2px #198754; }
.timeline-item.current::before { background: #ffc107; box-shadow: 0 0 0 2px #ffc107; }

/* Forms */
.form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}
.form-section h5 {
    color: var(--secondary);
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

/* Auth Pages */
.auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}
.auth-card {
    max-width: 450px;
    width: 100%;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* Tracking */
.status-badge-lg {
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
}

/* Verification Result */
.verify-result {
    border-radius: 12px;
    padding: 2rem;
}
.verify-valid { border: 2px solid #198754; background: #f0fdf4; }
.verify-invalid { border: 2px solid #dc3545; background: #fef2f2; }

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print */
@media print {
    .sidebar, .dashboard-topbar, .no-print { display: none !important; }
    .dashboard-content { margin-left: 0 !important; }
}
