:root {
    --app-ink: #1f2937;
    --app-muted: #6b7280;
    --app-brand: #F17720;
    --app-brand-dark: #d85f0e;
    --app-soft: #FAF5F0;
}

body {
    background: var(--app-soft);
    color: var(--app-ink);
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 14px;
    background: linear-gradient(135deg, #fff3eb 0%, #FAF5F0 50%, #fefcfb 100%);
}

.text-brand {
    color: var(--app-brand) !important;
}


.auth-card {
    width: min(100%, 420px);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
}

.btn-brand {
    background: var(--app-brand);
    color: #fff;
    border-color: var(--app-brand);
}

.btn-brand:hover,
.btn-brand:focus {
    background: var(--app-brand-dark);
    border-color: var(--app-brand-dark);
    color: #fff;
}

.admin-shell {
    min-height: 100vh;
}

.admin-sidebar {
    width: 270px;
    background: #0f172a !important;
    color: #f8fafc !important;
    padding: 18px;
    border-right: 0;
    --bs-offcanvas-bg: #0f172a;
    --bs-offcanvas-color: #f8fafc;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 22px;
    color: #ffffff;
    min-height: 42px;
}

.sidebar-brand i {
    color: #fdba74;
}

.admin-sidebar .nav-link {
    color: #e5e7eb !important;
    border-radius: 8px;
    padding: 11px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.admin-sidebar .nav-link i {
    width: 20px;
    color: #fed7aa;
    text-align: center;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: #ea580c;
    color: #ffffff !important;
}

.admin-sidebar .nav-link:hover i,
.admin-sidebar .nav-link.active i {
    color: #ffffff;
}

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

.topbar {
    height: 68px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.content-wrap {
    padding: 20px;
}

.stat-card,
.app-card {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 8px 26px rgba(15, 23, 42, .07);
}

.course-card {
    min-height: 150px;
}

.video-list-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.student-nav {
    background: #fff;
}

.video-frame {
    aspect-ratio: 16 / 9;
    width: 100%;
    border: 0;
    background: #000;
}

.student-modal .modal-body {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.student-modal .modal-content {
    max-height: calc(100vh - 24px);
}

.student-modal .modal-header,
.student-modal .modal-footer {
    flex-shrink: 0;
}

.student-modal .form-label {
    margin-bottom: 6px;
}

.student-modal input[type="date"] {
    min-height: 38px;
}

@media (min-width: 992px) {
    .admin-shell {
        display: flex;
    }

    .admin-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        transform: none !important;
        visibility: visible !important;
    }
}

@media (max-width: 575.98px) {
    .content-wrap {
        padding: 14px;
    }

    .topbar {
        padding: 0 12px;
    }
}
