:root {
    --ssc-primary: #1a5276;
    --ssc-primary-dark: #0e3454;
    --ssc-secondary: #2e86c1;
    --ssc-accent: #f39c12;
    --ssc-success: #27ae60;
    --ssc-sidebar-width: 260px;
    --ssc-navbar-height: 60px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    min-height: 100vh;
}

/* ===== LAYOUT ===== */
.wrapper {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: var(--ssc-sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s;
}

.content-area { flex: 1; }

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--ssc-sidebar-width);
    background: linear-gradient(180deg, var(--ssc-primary) 0%, var(--ssc-primary-dark) 100%);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.sidebar-header {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: var(--ssc-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.sidebar-nav .nav-link {
    color: rgba(255,255,255,0.75);
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.sidebar-nav .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.12);
    border-left-color: var(--ssc-accent);
}

.sidebar-nav .nav-link i { font-size: 1.1rem; width: 20px; }

.sidebar-footer { padding: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }

/* ===== TOP NAVBAR ===== */
.top-navbar {
    height: var(--ssc-navbar-height);
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.page-heading { color: var(--ssc-primary); font-weight: 600; }

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
}

.footer-bar {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    color: #888;
}

/* ===== DASHBOARD CARDS ===== */
.stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.stat-card .card-body { padding: 1.25rem; }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-icon.primary { background: rgba(26,82,118,0.1); color: var(--ssc-primary); }
.stat-icon.success { background: rgba(39,174,96,0.1); color: var(--ssc-success); }
.stat-icon.warning { background: rgba(243,156,18,0.1); color: var(--ssc-accent); }
.stat-icon.danger  { background: rgba(231,76,60,0.1); color: #e74c3c; }
.stat-icon.info    { background: rgba(46,134,193,0.1); color: var(--ssc-secondary); }

.stat-value { font-size: 1.75rem; font-weight: 700; color: #2c3e50; }
.stat-label { color: #7f8c8d; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== CONTENT CARDS ===== */
.content-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 1.5rem;
}

.content-card .card-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: var(--ssc-primary);
    padding: 1rem 1.25rem;
}

/* ===== TABLES ===== */
.table-responsive { border-radius: 8px; }

.table thead th {
    background: var(--ssc-primary);
    color: #fff;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: none;
    white-space: nowrap;
}

.table tbody tr:hover { background-color: rgba(26,82,118,0.03); }

/* ===== LANDING PAGE ===== */
.landing-hero {
    background: linear-gradient(135deg, var(--ssc-primary) 0%, var(--ssc-secondary) 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.landing-nav {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-nav .brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 2rem;
}

.hero-text h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 1rem; }
.hero-text p  { font-size: 1.15rem; opacity: 0.9; line-height: 1.7; }

.feature-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    height: 100%;
}

.feature-card i { font-size: 2rem; margin-bottom: 0.75rem; color: var(--ssc-accent); }

/* ===== AUTH PAGES ===== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ssc-primary) 0%, var(--ssc-secondary) 100%);
    padding: 2rem;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
}

.auth-card-header {
    background: var(--ssc-primary);
    color: #fff;
    padding: 2rem;
    text-align: center;
}

.auth-card-header .brand-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
}

.auth-card-body { padding: 2rem; }

/* ===== BUTTONS ===== */
.btn-primary {
    background-color: var(--ssc-primary);
    border-color: var(--ssc-primary);
}
.btn-primary:hover {
    background-color: var(--ssc-primary-dark);
    border-color: var(--ssc-primary-dark);
}

.btn-outline-primary {
    color: var(--ssc-primary);
    border-color: var(--ssc-primary);
}
.btn-outline-primary:hover {
    background-color: var(--ssc-primary);
    border-color: var(--ssc-primary);
}

/* ===== PRINT STYLES ===== */
@media print {
    .sidebar, .top-navbar, .footer-bar, .no-print, .btn, .pagination { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .content-area { padding: 0 !important; }
    body { background: #fff; }
    .content-card { box-shadow: none; border: 1px solid #ddd; }
    .print-header { display: block !important; }
}

.print-header { display: none; text-align: center; margin-bottom: 1.5rem; }
.print-header h3 { color: var(--ssc-primary); margin-bottom: 0.25rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .hero-text h1 { font-size: 2rem; }
}

@media (max-width: 575.98px) {
    .stat-value { font-size: 1.4rem; }
    .auth-card-body { padding: 1.25rem; }
}

/* ===== MISC ===== */
.search-filter-bar {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #aaa;
}

.empty-state i { font-size: 3rem; margin-bottom: 1rem; display: block; }

.privacy-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.schedule-slot {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.schedule-slot:hover, .schedule-slot.selected {
    border-color: var(--ssc-primary);
    background: rgba(26,82,118,0.05);
}

.schedule-slot.selected {
    background: var(--ssc-primary);
    color: #fff;
}

.schedule-slot.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}
