﻿@font-face {
    font-family: 'Gotham';
    src: url('/fonts/Gotham Book.otf') format('opentype');
    font-weight: 400;
}

@font-face {
    font-family: 'Gotham';
    src: url('/fonts/Gotham Medium.otf') format('opentype');
    font-weight: 500;
}

@font-face {
    font-family: 'Gotham';
    src: url('/fonts/Gotham Bold.otf') format('opentype');
    font-weight: 700;
}

@font-face {
    font-family: 'GE Dinar One';
    src: url('/fonts/GE Dinar One Medium.ttf') format('truetype');
    font-weight: 400;
}

html[lang="ar"],
.arabic-text,
:lang(ar) {
    font-family: 'GE Dinar One', 'Gotham', Arial, sans-serif;
}

:root {
    --primary: #680203;
    --primary-dark: #680203;
    --accent: #bf0a13;
    --gray-dark: #737071;
    --gray-light: #c4c4c4;
    --bg: #f7f3f4;
    --card: #ffffff;
    --text: #241014;
    --muted: #737071;
    --danger: #b42318;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Gotham', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* =========================================
   PROFILE
========================================= */

.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.detail-item {
    background: #fbf7f8;
    border: 1px solid rgba(123, 16, 35, .10);
    border-radius: 18px;
    padding: 18px;
}

    .detail-item span {
        display: block;
        color: var(--muted);
        font-size: 13px;
        margin-bottom: 8px;
    }

    .detail-item strong {
        color: var(--primary);
        font-size: 17px;
    }

/* =========================================
   LOGIN
========================================= */

.login-logo {
    width: 260px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 22px;
}

.sidebar-logo {
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 50%;
    padding: 8px;
    object-fit: contain;
}

.login-body {
    min-height: 100vh;
    background: var(--primary-dark);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    border-radius: 32px;
    padding: 42px;
    color: var(--primary);
    box-shadow: 0 30px 80px rgba(0,0,0,.28);
}

.login-brand {
    text-align: center;
    margin-bottom: 32px;
}

.logo-placeholder,
.mini-logo {
    background: linear-gradient(135deg, var(--accent), #00789a);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.logo-placeholder {
    width: 92px;
    height: 92px;
    border-radius: 28px;
    font-size: 44px;
    margin: 0 auto 18px;
}

.login-brand h1 {
    margin: 0;
    font-size: 34px;
}

.login-brand p {
    margin: 10px 0 0;
    color: var(--primary);
}

.login-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-form input {
    width: 100%;
    height: 58px;
    border: 0;
    border-radius: 16px;
    padding: 0 18px;
    font-size: 18px;
    outline: none;
}

.login-form button {
    width: 100%;
    height: 60px;
    border: 0;
    margin-top: 18px;
    border-radius: 18px;
    background: var(--primary);
    color: white;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(104, 2, 3, .25);
}

    .login-form button:hover {
        background: var(--accent);
    }

.error-box {
    background: #fff3f0;
    color: var(--danger);
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
}

.login-info {
    margin-top: 24px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.14);
    text-align: center;
    color: var(--primary);
}

/* =========================================
   LAYOUT
========================================= */

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--primary-dark);
    color: white;
    padding: 24px;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
}

    .brand strong {
        display: block;
        font-size: 15px;
        white-space: nowrap;
    }

    .brand > div {
        min-width: 0;
    }

    .brand small {
        color: rgba(255,255,255,.72);
        display: block;
        margin-top: 3px;
    }

.mini-logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 24px;
}

.sidebar nav {
    display: grid;
    gap: 10px;
}

    .sidebar nav a,
    .logout {
        color: white;
        text-decoration: none;
        padding: 14px 16px;
        border-radius: 14px;
        display: block;
        opacity: .88;
        transition: .2s;
    }

        .sidebar nav a.active,
        .sidebar nav a:hover,
        .logout:hover {
            background: rgba(255,255,255,.16);
            opacity: 1;
        }

.logout {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
}

.main-content {
    margin-left: 280px;
    width: calc(100% - 280px);
    padding: 28px;
    min-width: 0;
    overflow-x: hidden;
}

.topbar {
    background: white;
    padding: 22px 26px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(31,45,61,.08);
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

    .topbar h2 {
        margin: 0;
    }

    .topbar p {
        margin: 6px 0 0;
        color: var(--muted);
    }

.burger {
    display: none;
    border: 0;
    background: var(--primary);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 22px;
}

/* =========================================
   DASHBOARD
========================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
}

.profile-card,
.stat-card,
.content-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(31,45,61,.08);
}

.profile-card {
    display: flex;
    gap: 18px;
    align-items: center;
}

.avatar {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: grid;
    place-items: center;
    color: white;
    font-size: 32px;
    font-weight: 900;
}

.profile-card h3,
.section-header h3 {
    margin: 0;
}

.profile-card p,
.section-header p {
    color: var(--muted);
    margin: 6px 0 0;
}

.profile-card span {
    color: var(--muted);
    display: block;
    margin-top: 8px;
}

.stat-card span {
    color: var(--muted);
    display: block;
}

.stat-card strong {
    font-size: 34px;
    display: block;
    margin-top: 10px;
    color: var(--primary);
}

/* =========================================
   TABLES
========================================= */

.responsive-table {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    color: var(--muted);
    font-size: 13px;
    border-bottom: 1px solid #e8eef5;
    padding: 14px;
}

td {
    padding: 16px 14px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: top;
}

    td small {
        display: block;
        color: var(--muted);
        margin-top: 4px;
    }

.modern-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin-top: 25px;
    -webkit-overflow-scrolling: touch;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

    .modern-table thead {
        background: #7b001c;
        color: white;
    }

    .modern-table th {
        padding: 18px;
        text-align: left;
        font-size: 14px;
        font-weight: 600;
    }

    .modern-table td {
        padding: 18px;
        border-bottom: 1px solid #f1d7df;
        vertical-align: middle;
    }

    .modern-table tbody tr {
        transition: 0.3s;
    }

        .modern-table tbody tr:hover {
            background: #fff6f8;
        }

.table-link {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

    .table-link:hover {
        text-decoration: underline;
    }

.status-badge {
    background: linear-gradient(135deg, #7b001c, #b3123b);
    color: white;
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

/* =========================================
   CERTIFICATES
========================================= */

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 26px;
}

.certificate-card {
    background: #fff;
    border: 1px solid rgba(123, 16, 35, .14);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 16px 36px rgba(75, 6, 18, .08);
    transition: .25s;
}

    .certificate-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 22px 44px rgba(75, 6, 18, .14);
    }

.certificate-top {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.certificate-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, #7b1023, #4b0612);
    color: white;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 900;
}

.certificate-card h4 {
    margin: 0 0 6px;
    color: var(--primary);
    font-size: 17px;
}

.certificate-card p {
    margin: 0;
    color: var(--muted);
}

.certificate-meta {
    background: #fbf7f8;
    border: 1px solid rgba(123, 16, 35, .08);
    border-radius: 14px;
    padding: 13px;
    margin-bottom: 10px;
}

    .certificate-meta span {
        display: block;
        font-size: 12px;
        color: var(--muted);
        margin-bottom: 4px;
    }

    .certificate-meta strong {
        color: var(--primary);
    }

.certificate-button {
    display: block;
    margin-top: 16px;
    text-decoration: none;
    background: linear-gradient(135deg, #7b1023, #4b0612);
    color: white;
    padding: 13px 16px;
    border-radius: 14px;
    text-align: center;
    font-weight: 800;
    transition: .2s;
}

    .certificate-button:hover {
        background: linear-gradient(135deg, #4b0612, #7b1023);
    }

.certificate-pending {
    display: block;
    margin-top: 16px;
    background: #eee;
    color: #777;
    padding: 13px 16px;
    border-radius: 14px;
    text-align: center;
    font-weight: 800;
}

.empty-state {
    margin-top: 24px;
    padding: 34px;
    border-radius: 22px;
    background: #fbf7f8;
    border: 1px dashed rgba(123, 16, 35, .25);
    text-align: center;
    color: var(--primary);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {
    .certificate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 28px;
        border-radius: 26px;
    }
}


@media (max-width: 700px) {
    .profile-details-grid {
        grid-template-columns: 1fr;
    }

    .certificate-grid {
        grid-template-columns: 1fr;
    }
}

.modern-table thead th {
    color: white !important;
}

.modern-table thead,
.modern-table thead tr,
.modern-table thead th {
    background: #7b001c !important;
    color: #ffffff !important;
}

.modern-table th {
    color: #ffffff !important;
    font-weight: 700;
}
.certificate-details-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

    .certificate-details-hero h2 {
        margin: 12px 0 6px;
        color: var(--primary);
    }

    .certificate-details-hero p {
        margin: 0;
        color: var(--muted);
    }

.certificate-status {
    display: inline-block;
    background: #fbf7f8;
    border: 1px solid rgba(123, 16, 35, .12);
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.certificate-download {
    width: 220px;
}

.certificate-preview {
    width: 100%;
    height: 720px;
    border: 1px solid rgba(123, 16, 35, .12);
    border-radius: 18px;
    margin-top: 24px;
    background: #fbf7f8;
}

@media (max-width: 700px) {
    .certificate-details-hero {
        display: block;
    }

    .certificate-download {
        width: 100%;
    }

    .certificate-preview {
        height: 520px;
    }
}

.content-card {
    margin-bottom: 28px;
}

.dashboard-grid {
    margin-bottom: 28px;
}

.section-header {
    margin-bottom: 22px;
}

.main-content > * {
    margin-bottom: 28px;
}

    .main-content > *:last-child {
        margin-bottom: 0;
    }

.content-card + .content-card {
    margin-top: 28px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.quick-action-card {
    background: white;
    border-radius: 22px;
    padding: 22px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(31,45,61,.08);
    border: 1px solid rgba(123, 16, 35, .08);
    transition: .2s;
}

    .quick-action-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 36px rgba(75, 6, 18, .12);
    }

    .quick-action-card span {
        color: var(--muted);
        display: block;
        margin-bottom: 8px;
    }

    .quick-action-card strong {
        color: var(--primary);
        font-size: 18px;
    }

@media (max-width: 900px) {
    .quick-actions {
        grid-template-columns: 1fr;
    }
}





.modern-filter-card {
    display: grid !important;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr auto;
    gap: 16px;
    align-items: end;
    background: #ffffff;
    border: 1px solid rgba(123, 16, 35, .10);
    border-radius: 22px;
    padding: 20px;
    margin: 22px 0 26px;
    box-shadow: 0 12px 32px rgba(75, 6, 18, .08);
}

.modern-filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.modern-filter-input {
    width: 100%;
    height: 46px;
    border: 1px solid #ead9de;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 14px;
    background: #fbf7f8;
    color: var(--text);
    outline: none;
}

    .modern-filter-input:focus {
        border-color: var(--primary);
        background: #fff;
        box-shadow: 0 0 0 4px rgba(123, 16, 35, .08);
    }

.modern-filter-actions {
    display: flex;
    gap: 10px;
}

.modern-filter-btn,
.modern-clear-btn {
    height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modern-filter-btn {
    border: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.modern-clear-btn {
    background: #f3e8eb;
    color: var(--primary);
}

@media (max-width: 1100px) {
    .modern-filter-card {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .modern-filter-card {
        grid-template-columns: 1fr;
    }

    .modern-filter-actions {
        flex-direction: column;
    }
}

.qr-card {
    text-align: center;
    background: #fbf7f8;
    border: 1px solid rgba(123, 16, 35, .12);
    border-radius: 24px;
    padding: 30px;
}

    .qr-card h3 {
        color: var(--primary);
        margin-bottom: 6px;
    }

    .qr-card p {
        color: var(--muted);
        margin-bottom: 20px;
    }

.qr-image {
    width: 260px;
    height: 260px;
    background: white;
    padding: 16px;
    border-radius: 22px;
    box-shadow: 0 14px 35px rgba(75, 6, 18, .12);
}

.qr-dates {
    margin-top: 20px;
    color: var(--primary);
    line-height: 1.8;
}

/* Authentication links */
.login-links {
    margin-top: 16px;
    text-align: center;
}

.login-links a,
.portal-link {
    color: #800000;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.login-links a:hover,
.portal-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.login-links a:visited,
.portal-link:visited {
    color: #800000;
}

/* Validation */
.field-validation-error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #b42318;
}

.error-box {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff2f2;
    color: #a40000;
    font-size: 14px;
}

.success-box {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f0f8f2;
    color: #216e39;
    font-size: 14px;
}

/* =========================================
   PROFILE / PASSWORD ACTIONS
========================================= */

.password-card {
    max-width: 760px;
}

.password-form {
    margin-top: 24px;
}

.portal-form-group {
    margin-bottom: 20px;
}

    .portal-form-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: 700;
        color: var(--primary);
    }

.portal-input {
    width: 100%;
    height: 50px;
    border: 1px solid #ead9de;
    border-radius: 14px;
    padding: 0 15px;
    font-family: inherit;
    font-size: 15px;
    background: #fbf7f8;
    color: var(--text);
    outline: none;
}

    .portal-input:focus {
        border-color: var(--primary);
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(123, 16, 35, .08);
    }

.password-actions,
.profile-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.profile-actions {
    padding-top: 20px;
    border-top: 1px solid #eee2e2;
}

.portal-button-primary,
.portal-button-secondary {
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.portal-button-primary {
    border: 0;
    background: linear-gradient( 135deg, var(--primary), var(--primary-dark) );
    color: #ffffff;
}

    .portal-button-primary:hover {
        background: var(--accent);
    }

.portal-button-secondary {
    border: 1px solid #ead9de;
    background: #f3e8eb;
    color: var(--primary);
}

    .portal-button-secondary:hover {
        border-color: var(--primary);
        background: #fff6f8;
    }

    .portal-button-secondary:visited {
        color: var(--primary);
    }

@media (max-width: 700px) {
    .password-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-button-primary,
    .portal-button-secondary {
        width: 100%;
    }
}

/* =========================================
   TODAY'S ATTENDANCE
========================================= */

.attendance-list {
    display: grid;
    gap: 18px;
}

.attendance-card {
    background: #fbf7f8;
    border: 1px solid rgba(123, 16, 35, .10);
    border-radius: 20px;
    padding: 20px;
}

.attendance-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
}

.attendance-label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.attendance-class {
    display: block;
    color: var(--primary);
    font-size: 17px;
}

.attendance-date {
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.attendance-times {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.attendance-time-item {
    background: #ffffff;
    border: 1px solid rgba(123, 16, 35, .08);
    border-radius: 14px;
    padding: 14px;
}

    .attendance-time-item span {
        display: block;
        color: var(--muted);
        font-size: 12px;
        margin-bottom: 6px;
    }

    .attendance-time-item strong {
        color: var(--primary);
        font-size: 14px;
    }

@media (max-width: 900px) {
    .attendance-times {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .attendance-main {
        display: block;
    }

    .attendance-date {
        margin-top: 10px;
    }

    .attendance-times {
        grid-template-columns: 1fr;
    }
}
.attendance-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 16px;
}

.attendance-button {
    border: 0;
    border-radius: 12px;
    padding: 12px 24px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

    .attendance-button:hover {
        opacity: .9;
    }

.attendance-action-note {
    color: var(--muted);
    font-size: 13px;
}



/* =========================================
   SUPPORT
========================================= */

.support-card {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.support-profile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0 28px;
}

.support-readonly-field {
    min-width: 0;
    padding: 16px 18px;
    background: #fbf7f8;
    border: 1px solid rgba(123, 16, 35, .10);
    border-radius: 16px;
}

    .support-readonly-field span {
        display: block;
        margin-bottom: 7px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 500;
    }

    .support-readonly-field strong {
        display: block;
        overflow-wrap: anywhere;
        color: var(--primary);
        font-size: 14px;
        font-weight: 700;
    }

.support-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.support-field {
    min-width: 0;
}

.support-field-full {
    grid-column: 1 / -1;
}

.support-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.portal-select,
.portal-textarea {
    width: 100%;
    border: 1px solid #ead9de;
    border-radius: 14px;
    background: #fbf7f8;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: .2s;
}

.portal-select {
    height: 50px;
    padding: 0 15px;
    cursor: pointer;
}

.portal-textarea {
    display: block;
    min-height: 150px;
    padding: 15px;
    line-height: 1.6;
    resize: vertical;
}

    .portal-select:focus,
    .portal-textarea:focus {
        border-color: var(--primary);
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(123, 16, 35, .08);
    }

.support-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

@media (max-width: 1000px) {
    .support-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .support-profile-grid,
    .support-form-grid {
        grid-template-columns: 1fr;
    }

    .support-field-full {
        grid-column: auto;
    }

    .support-actions {
        justify-content: stretch;
    }

        .support-actions .portal-button-primary {
            width: 100%;
        }
}

/* =========================================
   USER GUIDE
========================================= */

.guide-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.guide-item {
    background: #ffffff;
    border: 1px solid rgba(123, 16, 35, .10);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .guide-item:hover {
        border-color: rgba(104, 2, 3, .25);
    }

    .guide-item[open] {
        border-color: rgba(104, 2, 3, .20);
        box-shadow: 0 8px 24px rgba(75, 6, 18, .06);
    }

    .guide-item summary {
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        min-height: 62px;
        padding: 0 18px;
        cursor: pointer;
        color: var(--primary);
        font-size: 15px;
        font-weight: 700;
        user-select: none;
    }

        .guide-item summary::-webkit-details-marker {
            display: none;
        }

    .guide-item[open] summary {
        background: #fbf7f8;
    }

.guide-chevron {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f3e8eb;
    color: var(--primary);
    font-size: 20px;
    line-height: 1;
    transition: transform .2s ease;
}

.guide-item[open] .guide-chevron {
    transform: rotate(180deg);
}

.guide-content {
    padding: 18px;
    border-top: 1px solid rgba(123, 16, 35, .08);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

    .guide-content p {
        margin: 0;
    }

        .guide-content p + p {
            margin-top: 10px;
        }

    .guide-content strong {
        color: var(--text);
    }

.support-success {
    margin: 0 0 22px;
    padding: 16px 18px;
    border-radius: 14px;
}

    .support-success strong {
        display: block;
        margin-bottom: 4px;
    }

    .support-success span {
        display: block;
        font-size: 13px;
        line-height: 1.5;
    }

/* =========================================
   DASHBOARD STATUS CARDS
========================================= */

.program-status-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0 0 28px;
}

    .program-status-grid .stat-card {
        width: 100%;
        min-width: 0;
        min-height: 108px;
    }

/* Mobile */
@media (max-width: 650px) {
    .program-status-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* =========================================
   MOBILE SIDEBAR
========================================= */
.sidebar-overlay {
    display: none;
}

@media (max-width: 900px) {

    .sidebar {
        width: min(280px, 85vw);
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: none;
    }

        .sidebar.open {
            transform: translateX(0);
            box-shadow: 12px 0 35px rgba(0, 0, 0, .20);
        }

    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .35);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .25s ease, visibility .25s ease;
        z-index: 19;
    }

        .sidebar-overlay.open {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

    .main-content {
        margin-left: 0;
        width: 100%;
        min-width: 0;
        padding: 16px;
    }

    .burger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        min-width: 46px;
        flex: 0 0 46px;
        padding: 0;
        margin: 0;
        border-radius: 13px;
        font-family: Arial, sans-serif;
        font-size: 23px;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
    }

    body.sidebar-open {
        overflow: hidden;
    }
}



.session-filter-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
}

    .session-filter-card .modern-filter-group {
        min-width: 0;
    }

    .session-filter-card .modern-filter-input {
        width: 100%;
    }

@media (max-width: 1000px) {
    .session-filter-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


        .session-filter-card .modern-filter-actions {
            grid-column: 1 / -1;
            justify-content: flex-end;
        }
}

@media (max-width: 700px) {
    .session-filter-card {
        grid-template-columns: 1fr;
    }

        .session-filter-card .modern-filter-actions {
            grid-column: auto;
            flex-direction: column;
        }

        .session-filter-card .modern-filter-btn,
        .session-filter-card .modern-clear-btn {
            width: 100%;
        }
}
/* =========================================
   MOBILE LOGIN POLISH
   Phones only
========================================= */

@media (max-width: 600px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .app-shell,
    .main-content {
        max-width: 100%;
        min-width: 0;
    }

    .login-shell {
        min-height: 100svh;
        padding: 18px;
    }

    .login-card {
        padding: 26px 24px;
        border-radius: 26px;
    }

    .login-logo {
        width: 220px;
        margin-bottom: 14px;
    }

    .login-brand {
        margin-bottom: 22px;
    }

        .login-brand h1 {
            font-size: 29px;
            line-height: 1.12;
        }

        .login-brand p {
            margin-top: 8px;
            font-size: 15px;
            line-height: 1.45;
        }

    .login-form label {
        margin-bottom: 6px;
        font-size: 15px;
    }

    .login-form input {
        height: 52px;
        padding: 0 15px;
        border-radius: 14px;
        font-size: 16px;
    }

    .login-form button {
        height: 54px;
        margin-top: 14px;
        border-radius: 16px;
        font-size: 18px;
    }

    .login-links {
        margin-top: 13px;
    }

    .login-info {
        margin-top: 18px;
        padding: 12px;
        font-size: 14px;
        line-height: 1.45;
    }
}