:root {
    --savant-blue: #003366;
    --savant-dark: #002244;
    --text-main: #2c3e50;
    --bg-light: #f4f7f6;
    --white: #ffffff;
}

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
}

/* --- RESPONSIVE HEADER --- */
.main-header {
    background: var(--savant-blue);
    color: white;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    gap: 10px;
}

.logo img { height: 35px; width: auto; }
.logo-text { font-weight: 800; font-size: 1.2rem; letter-spacing: 1px; }

.mobile-toggle {
    display: none; /* Hidden on desktop */
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
}

/* --- NAVIGATION & SEARCH DRAWER --- */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 10px;
}

.main-nav { display: flex; gap: 5px; }
.nav-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
}
.nav-link:hover, .nav-link.active { color: white; background: rgba(255,255,255,0.1); }

/* --- SEARCH BAR --- */
.search-group {
    display: flex;
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    padding: 2px;
}
.search-group input {
    border: none;
    padding: 8px;
    width: 200px;
    outline: none;
}
.search-group select {
    border: none;
    border-left: 1px solid #ddd;
    background: #f8f9fa;
    padding: 0 10px;
    outline: none;
}
.btn-search {
    background: var(--savant-dark);
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
}

.header-user { display: flex; align-items: center; gap: 15px; }
.btn-logout {
    background: #dc3545;
    color: white;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
}

/* --- ADMIN PANEL GRID --- */
.container { padding: 20px; max-width: 1200px; margin: 0 auto; }
.page-title { border-bottom: 2px solid #ddd; padding-bottom: 10px; margin-bottom: 30px; }

.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.admin-card {
    text-decoration: none;
    color: inherit;
    background: var(--white);
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
}
.admin-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.card-icon { font-size: 3.5rem; margin-bottom: 15px; }
.admin-card h2 { margin: 0 0 10px 0; font-size: 1.4rem; }
.admin-card p { color: #666; margin: 0; }

/* --- MOBILE BREAKPOINTS --- */
@media (max-width: 992px) {
    .mobile-toggle { display: block; }
    
    .nav-container {
        display: none; /* Hide drawer */
        flex-direction: column;
        align-items: stretch;
        background: var(--savant-dark);
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        padding: 20px;
        z-index: 1000;
    }
    
    .nav-container.show { display: flex; }
    
    .main-nav { flex-direction: column; }
    .search-group { flex-direction: column; }
    .search-group input, .search-group select { width: 100%; border-bottom: 1px solid #ddd; border-left: none; height: 45px; }
    .header-user { margin-top: 15px; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; }
}

@media (max-width: 480px) {
    .admin-card-grid { grid-template-columns: 1fr; }
    .logo-text { display: none; } /* Save space on tiny phones */
}