:root {
    --primary: #06BBCC;
    --sidebar-bg: #181d38;
}

.status-badge-new { background: #0d6efd; }
.status-badge-reviewed { background: #6c757d; }
.status-badge-contacted { background: #fd7e14; }
.status-badge-enrolled { background: #198754; }
.status-badge-rejected { background: #dc3545; }
.status-badge-approved { background: #198754; }

body {
    background: #f4f6f9;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/*
 * Custom responsive sidebar (hand-rolled instead of Bootstrap's offcanvas-lg
 * component, which requires Bootstrap 5.2+ — this project intentionally
 * keeps the shared /css/bootstrap.min.css at 5.0.0 to match the original
 * public-site template, so offcanvas-lg has no effect and the sidebar would
 * otherwise render permanently shifted off-screen while still reserving its
 * layout width). Toggled via a small script in layout-foot.php.
 */
.admin-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1045;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .25s ease-in-out;
}

.admin-sidebar.show {
    transform: translateX(0);
}

.admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 1040;
    display: none;
}

.admin-sidebar-backdrop.show {
    display: block;
}

.sidebar-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

@media (min-width: 992px) {
    .admin-sidebar {
        position: static;
        transform: none;
        transition: none;
        height: auto;
    }

    .admin-sidebar-backdrop {
        display: none !important;
    }
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: rgba(255, 255, 255, .75);
    padding: .65rem 1rem;
    border-radius: .4rem;
    margin-bottom: .15rem;
    font-size: .95rem;
}

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

.admin-nav-link.active {
    color: #fff;
    background: var(--primary);
}

.sidebar-group-label {
    color: rgba(255, 255, 255, .4);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}

.admin-content {
    flex-grow: 1;
    min-width: 0;
}

.admin-menu-toggle {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1030;
}

@media (min-width: 992px) {
    .admin-menu-toggle {
        display: none;
    }
}

.admin-topbar {
    border-bottom: 1px solid #e9ecef;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: #059aa8;
    border-color: #059aa8;
}

.thumb-preview {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: .35rem;
    border: 1px solid #dee2e6;
}

.card-stat {
    border: none;
    border-radius: .6rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #181d38, #06BBCC);
    padding: 1rem;
}

.login-card {
    max-width: 400px;
    width: 100%;
    border: none;
    border-radius: .8rem;
}

@media (max-width: 575.98px) {
    .admin-topbar h4 {
        font-size: 1.1rem;
        margin-left: 2.2rem !important;
    }
}
