﻿/* ============================================================
   student-dashboard.css
   Student Dashboard Portal — Full Stylesheet
   Supports: RTL/LTR | Dark/Light | AR/EN
   ============================================================ */


/* ============================================================
   SECTION 1 — CSS VARIABLES
   ============================================================ */

:root {
    /* — Brand — */
    --primary: #e55a75;
    --primary-light: rgba(229, 90, 117, 0.12);
    --primary-hover: #cf4464;
    --primary-shadow: rgba(229, 90, 117, 0.35);
    --secondary: #26904e;
    --secondary-light: rgba(38, 144, 78, 0.12);
    --secondary-hover: #1e7340;
    --accent-blue: #0d6efd;
    --accent-blue-light: rgba(13, 110, 253, 0.12);
    --accent-yellow: #e6a800;
    --accent-yellow-light: rgba(230, 168, 0, 0.12);
    --danger: #dc3545;
    --danger-light: rgba(220, 53, 69, 0.12);
    /* — Surfaces — */
    --bg-page: #f0f3f9;
    --bg-card: #ffffff;
    --bg-navbar: #ffffff;
    --bg-footer: #1e2a3a;
    --bg-input: #f5f7fb;
    --bg-hover: rgba(229, 90, 117, 0.06);
    --bg-dropdown: #ffffff;
    /* — Text — */
    --text-main: #1a2035;
    --text-muted: #6c757d;
    --text-light: #adb5bd;
    --text-on-dark: #ffffff;
    --text-on-primary: #ffffff;
    --text-navbar: #1a2035;
    --text-footer: rgba(255, 255, 255, 0.75);
    --text-footer-muted: rgba(255, 255, 255, 0.45);
    /* — Border — */
    --border: #e4e8f0;
    --border-light: rgba(228, 232, 240, 0.6);
    --border-focus: rgba(229, 90, 117, 0.45);
    /* — Shadows — */
    --shadow-navbar: 0 2px 20px rgba(30, 42, 60, 0.08);
    --shadow-card: 0 2px 16px rgba(30, 42, 60, 0.07);
    --shadow-hover: 0 8px 28px rgba(229, 90, 117, 0.18);
    --shadow-btn: 0 4px 14px rgba(229, 90, 117, 0.35);
    --shadow-dropdown: 0 8px 32px rgba(30, 42, 60, 0.14);
    /* — Radius — */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 999px;
    /* — Spacing — */
    --gap-xs: 0.35rem;
    --gap-sm: 0.6rem;
    --gap-md: 1rem;
    --gap-lg: 1.5rem;
    --gap-xl: 2rem;
    /* — Typography — */
    --font-ar: 'Cairo', 'Tajawal', sans-serif;
    --font-en: 'Inter', 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.375rem;
    --font-size-2xl: 1.75rem;
    /* — Transitions — */
    --transition-fast: 0.18s ease;
    --transition-base: 0.28s ease;
    /* — Navbar — */
    --navbar-height: 68px;
    /* — Avatar — */
    --avatar-size-sm: 36px;
    --avatar-size-md: 46px;
    --avatar-size-lg: 52px;
    /* — Stat Card — */
    --stat-icon-size: 48px;
    /* — Timeline — */
    --timeline-dot-size: 14px;
}


/* ============================================================
   SECTION 2 — DARK MODE
   ============================================================ */

/* Custom - Dark mode overrides via body.dark */
body.dark {
    --bg-page: #0f1923;
    --bg-card: #1a2535;
    --bg-navbar: #111f2d;
    --bg-input: #1e2d3d;
    --bg-hover: rgba(229, 90, 117, 0.09);
    --bg-dropdown: #1a2535;
    --text-main: #e2e8f4;
    --text-muted: #8a9dbf;
    --text-light: #506070;
    --text-navbar: #e2e8f4;
    --border: #253347;
    --border-light: rgba(37, 51, 71, 0.7);
    --border-focus: rgba(229, 90, 117, 0.5);
    --shadow-navbar: 0 2px 20px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 2px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 28px rgba(229, 90, 117, 0.22);
    --shadow-dropdown: 0 8px 32px rgba(0, 0, 0, 0.45);
}


/* ============================================================
   SECTION 3 — BASE RESET
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    font-size: var(--font-size-base);
    background-color: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color var(--transition-base), color var(--transition-base);
}

    /* Custom - English font override */
    body.lang-en {
        font-family: var(--font-en);
    }

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}


/* ============================================================
   SECTION 4 — LANGUAGE VISIBILITY HELPERS
   ============================================================ */

/* Custom - Show/hide language-specific spans */
body.lang-ar .lang-en-text {
    display: none;
}

body.lang-en .lang-ar-text {
    display: none;
}

/* Default (no class yet) — show Arabic */
body:not(.lang-en) .lang-en-text {
    display: none;
}


/* ============================================================
   SECTION 5 — THEME ICON VISIBILITY
   ============================================================ */

/* Custom - Show moon in light mode, sun in dark mode */
body:not(.dark) .theme-icon-light {
    display: none;
}

body.dark .theme-icon-dark {
    display: none;
}


/* ============================================================
   SECTION 6 — CONTAINER
   ============================================================ */

.container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: var(--gap-lg);
}


/* ============================================================
   SECTION 7 — NAVBAR
   ============================================================ */

/* Custom - Fixed top navigation bar */
.student-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--navbar-height);
    background-color: var(--bg-navbar);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-navbar);
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

    .student-navbar .container {
        height: 100%;
    }

/* Custom - Flex row inside navbar */
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--gap-md);
}

/* Custom - Logo mark */
.student-logo {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

.logo-primary {
    color: var(--primary);
}

.logo-secondary {
    color: var(--secondary);
    font-size: 1rem;
    font-weight: 700;
}

/* Custom - Center nav links list (desktop) */
.student-nav-links {
    display: flex;
    align-items: center;
    gap: var(--gap-xs);
    margin: 0;
    padding: 0;
    list-style: none;
}

.student-nav-link {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    padding: 0.45rem var(--gap-md);
    border-radius: var(--radius-pill);
    color: var(--text-navbar);
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

    .student-nav-link:hover {
        background-color: var(--primary-light);
        color: var(--primary);
    }

/* Custom - Right-side action buttons group */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    flex-shrink: 0;
}

/* Custom - Small icon button (lang, theme, bell) */
.student-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background-color: var(--bg-input);
    color: var(--text-navbar);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
    position: relative;
}

    .student-nav-btn:hover {
        background-color: var(--primary-light);
        border-color: var(--border-focus);
        color: var(--primary);
        transform: translateY(-1px);
    }

/* Custom - Flag image inside language toggle button */
.lang-flag-img {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-pill);
    object-fit: cover;
}

/* Custom - Notification bell with badge */
.student-nav-btn--notif {
    position: relative;
}

.student-notif-badge {
    position: absolute;
    top: -3px;
    inset-inline-end: -3px;
    background: var(--primary);
    color: var(--text-on-primary);
    border-radius: var(--radius-pill);
    font-size: 0.62rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-navbar);
    line-height: 1;
    padding-inline: 2px;
}

/* Custom - User dropdown trigger button */
.student-user-btn {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    padding: 0.35rem var(--gap-sm) 0.35rem 0.35rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background-color: var(--bg-input);
    color: var(--text-navbar);
    font-weight: 600;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

body[dir="ltr"] .student-user-btn {
    padding: 0.35rem 0.35rem 0.35rem var(--gap-sm);
}

.student-user-btn:hover {
    background-color: var(--primary-light);
    border-color: var(--border-focus);
}

/* Custom - Circular avatar in navbar user button */
.student-user-avatar {
    width: var(--avatar-size-sm);
    height: var(--avatar-size-sm);
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--text-on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.student-user-name {
    display: none;
}

@media (min-width: 768px) {
    .student-user-name {
        display: inline;
    }
}

.student-user-chevron {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.student-user-btn[aria-expanded="true"] .student-user-chevron {
    transform: rotate(180deg);
}

/* Custom - Dropdown menu panel */
.student-dropdown {
    min-width: 240px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background-color: var(--bg-dropdown);
    box-shadow: var(--shadow-dropdown);
    padding: var(--gap-sm);
    margin-top: var(--gap-sm) !important;
    overflow: hidden;
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

/* Custom - Top section of dropdown with user info */
.student-dropdown-header {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    padding: var(--gap-sm) var(--gap-sm);
}

.student-dropdown-avatar {
    width: var(--avatar-size-md);
    height: var(--avatar-size-md);
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--text-on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.student-dropdown-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.student-dropdown-name {
    font-weight: 700;
    font-size: var(--font-size-sm);
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.student-dropdown-email {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Custom - Dropdown divider line */
.student-divider {
    border-color: var(--border);
    margin: var(--gap-xs) 0;
    opacity: 1;
}

/* Custom - Dropdown menu item */
.student-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    padding: 0.6rem var(--gap-md);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: background-color var(--transition-fast), color var(--transition-fast);
    cursor: pointer;
}

    .student-dropdown-item i {
        width: 18px;
        text-align: center;
        color: var(--text-muted);
        transition: color var(--transition-fast);
        flex-shrink: 0;
    }

    .student-dropdown-item:hover {
        background-color: var(--primary-light);
        color: var(--primary);
    }

        .student-dropdown-item:hover i {
            color: var(--primary);
        }

/* Custom - Danger dropdown item (logout) */
.student-dropdown-item--danger {
    color: var(--danger);
}

    .student-dropdown-item--danger i {
        color: var(--danger);
    }

    .student-dropdown-item--danger:hover {
        background-color: var(--danger-light);
        color: var(--danger);
    }

        .student-dropdown-item--danger:hover i {
            color: var(--danger);
        }

/* Custom - Guest join button */
.student-join-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-sm);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--text-on-primary);
    font-weight: 700;
    font-size: var(--font-size-sm);
    border: none;
    box-shadow: var(--shadow-btn);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
    white-space: nowrap;
}

    .student-join-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px var(--primary-shadow);
        color: var(--text-on-primary);
        opacity: 0.93;
    }


/* ============================================================
   SECTION 8 — MAIN CONTENT AREA
   ============================================================ */

/* Custom - Main page body, grows to fill space between navbar & footer */
.student-main {
    flex: 1;
    padding-block: var(--gap-lg);
    min-height: calc(100vh - var(--navbar-height) - 80px);
}


/* ============================================================
   SECTION 9 — FOOTER
   ============================================================ */

/* Custom - Dark footer bar */
.student-footer {
    background-color: var(--bg-footer);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-block: var(--gap-lg);
    margin-top: auto;
}

/* Custom - Footer inner flex layout */
.student-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--gap-md);
}

/* Custom - Footer logo + copyright block */
.student-footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--gap-xs);
}

.student-footer-copy {
    font-size: var(--font-size-xs);
    color: var(--text-footer-muted);
    margin: 0;
}

/* Custom - Footer navigation links */
.student-footer-links {
    display: flex;
    align-items: center;
    gap: var(--gap-lg);
    flex-wrap: wrap;
}

.student-footer-link {
    font-size: var(--font-size-sm);
    color: var(--text-footer);
    font-weight: 500;
    transition: color var(--transition-fast);
}

    .student-footer-link:hover {
        color: var(--primary);
    }


/* ============================================================
   SECTION 10 — BUTTONS (Shared)
   ============================================================ */

/* Custom - Primary filled button */
.btn-student-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-sm);
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--text-on-primary);
    font-weight: 700;
    font-size: var(--font-size-sm);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-btn);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}

    .btn-student-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px var(--primary-shadow);
        color: var(--text-on-primary);
        opacity: 0.93;
    }

/* Custom - Outline button */
.btn-student-outline {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-sm);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    font-size: var(--font-size-sm);
    border: 1.5px solid var(--primary);
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}

    .btn-student-outline:hover {
        background-color: var(--primary);
        color: var(--text-on-primary);
        transform: translateY(-1px);
    }


/* ============================================================
   SECTION 11 — DASHBOARD WELCOME HEADER
   ============================================================ */

/* Custom - Welcome banner at top of dashboard page */
.dashboard-welcome {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--gap-lg) var(--gap-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

.dashboard-welcome-avatar {
    width: var(--avatar-size-lg);
    height: var(--avatar-size-lg);
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--text-on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow-btn);
    user-select: none;
}

.dashboard-welcome-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin: 0;
}

.dashboard-welcome-sub {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: var(--gap-xs);
    margin-bottom: 0;
}

/* Custom - Badge shown when student has active application in progress */
.dashboard-no-apply-badge {
    display: inline-flex;
    align-items: center;
    background: var(--accent-yellow-light);
    color: var(--accent-yellow);
    border: 1px solid rgba(230, 168, 0, 0.3);
    border-radius: var(--radius-pill);
    padding: 0.45rem 1.1rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    gap: var(--gap-xs);
    white-space: nowrap;
}


/* ============================================================
   SECTION 12 — STAT CARDS
   ============================================================ */

/* Custom - Summary statistic cards */
.dashboard-stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    border-top: 4px solid transparent;
    padding: var(--gap-lg) var(--gap-md);
    text-align: center;
    box-shadow: var(--shadow-card);
    height: 100%;
    transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base), border-color var(--transition-base);
}

    .dashboard-stat-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-hover);
    }

.dashboard-stat-icon {
    width: var(--stat-icon-size);
    height: var(--stat-icon-size);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: var(--gap-sm);
}

.dashboard-stat-value {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: var(--gap-xs);
}

.dashboard-stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: 500;
}


/* ============================================================
   SECTION 13 — STUDENT CARD (generic panel)
   ============================================================ */

/* Custom - Reusable white/dark card container */
.student-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: var(--gap-xl);
    box-shadow: var(--shadow-card);
    transition: background-color var(--transition-base), border-color var(--transition-base);
}


/* ============================================================
   SECTION 14 — STEP CARD HEADER
   ============================================================ */

/* Custom - Icon + title header pattern used in card panels */
.step-card-header {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
}

.step-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--text-on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px var(--primary-shadow);
}

.step-card-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.step-card-sub {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: var(--gap-xs);
}


/* ============================================================
   SECTION 15 — QUICK ACTION BUTTONS
   ============================================================ */

/* Custom - Clickable action rows in Quick Actions panel */
.quick-action-btn {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    padding: 0.75rem var(--gap-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
    cursor: pointer;
}

    /* Custom - RTL hover slides right */
    .quick-action-btn:hover {
        transform: translateX(3px);
        box-shadow: var(--shadow-hover);
        background-color: var(--bg-hover);
        border-color: var(--border-focus);
        color: var(--text-main);
    }

/* Custom - LTR hover slides left */
body[dir="ltr"] .quick-action-btn:hover {
    transform: translateX(-3px);
}

.quick-action-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    position: relative;
}

.quick-action-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
}

.quick-action-sub {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-top: 2px;
}

.quick-action-arrow {
    color: var(--text-light);
    font-size: 0.8rem;
    transition: color var(--transition-fast);
    flex-shrink: 0;
}

.quick-action-btn:hover .quick-action-arrow {
    color: var(--primary);
}

/* Custom - Notification badge on quick action icon */
.quick-action-badge {
    position: absolute;
    top: -5px;
    inset-inline-end: -5px;
    background: var(--primary);
    color: var(--text-on-primary);
    border-radius: var(--radius-pill);
    font-size: 0.62rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
    line-height: 1;
}


/* ============================================================
   SECTION 16 — APP INFO ROW
   ============================================================ */

/* Custom - Key/value metadata row inside application card */
.app-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-md);
    padding: var(--gap-md);
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

.app-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1 1 130px;
}

.app-info-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    font-weight: 500;
}

.app-info-value {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-main);
}


/* ============================================================
   SECTION 17 — STATUS TIMELINE
   ============================================================ */

/* Custom - Vertical history timeline for application status */
.status-timeline {
    position: relative;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.timeline-item {
    position: relative;
    display: flex;
    gap: var(--gap-md);
    padding-bottom: var(--gap-lg);
    padding-inline-start: calc(var(--timeline-dot-size) + var(--gap-md));
}

    /* Custom - Connecting vertical line between timeline dots */
    .timeline-item:not(:last-child)::before {
        content: '';
        position: absolute;
        inset-inline-start: calc(var(--timeline-dot-size) / 2 - 1px);
        top: var(--timeline-dot-size);
        bottom: 0;
        width: 2px;
        background-color: var(--border);
        transition: background-color var(--transition-base);
    }

    .timeline-item.done:not(:last-child)::before {
        background-color: var(--secondary);
        opacity: 0.35;
    }

.timeline-dot {
    position: absolute;
    inset-inline-start: 0;
    top: 3px;
    width: var(--timeline-dot-size);
    height: var(--timeline-dot-size);
    border-radius: var(--radius-pill);
    border: 2px solid var(--border);
    background: var(--bg-page);
    flex-shrink: 0;
    transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.timeline-item.done .timeline-dot {
    background: var(--secondary);
    border-color: var(--secondary);
}

.timeline-item.active .timeline-dot {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
    animation: pulse-dot 1.8s infinite;
}

/* Custom - Pulse animation for the latest active timeline step */
@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 var(--primary-light);
    }

    60% {
        box-shadow: 0 0 0 8px transparent;
    }

    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
}

.timeline-item.active .timeline-title {
    color: var(--primary);
}

.timeline-date {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-top: 3px;
}

/* Custom - Admin notes block attached to a timeline step */
.timeline-note {
    margin-top: var(--gap-sm);
    padding: var(--gap-sm) var(--gap-md);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    border-inline-start: 3px solid var(--primary);
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    transition: background-color var(--transition-base);
}


/* ============================================================
   SECTION 18 — EMPTY STATE
   ============================================================ */

/* Custom - Placeholder shown when no applications exist */
.dashboard-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--gap-xl);
    gap: var(--gap-md);
    text-align: center;
    min-height: 220px;
}

    .dashboard-empty i {
        font-size: 3rem;
        color: var(--text-light);
        opacity: 0.6;
    }

    .dashboard-empty p {
        font-size: var(--font-size-sm);
        color: var(--text-muted);
        max-width: 300px;
        margin: 0;
    }


/* ============================================================
   SECTION 19 — CUSTOM SCROLLBAR
   ============================================================ */

/* Custom - Subtle thin scrollbar for card scroll areas */
.student-card {
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

    .student-card::-webkit-scrollbar {
        width: 5px;
    }

    .student-card::-webkit-scrollbar-track {
        background: transparent;
    }

    .student-card::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: var(--radius-pill);
    }


/* ============================================================
   SECTION 20 — RESPONSIVE
   ============================================================ */

@media (max-width: 991px) {
    .student-nav-links {
        display: none;
    }

    .student-card {
        padding: var(--gap-lg);
    }

    .dashboard-welcome {
        padding: var(--gap-md) var(--gap-lg);
    }
}

@media (max-width: 767px) {
    :root {
        --navbar-height: 60px;
        --font-size-2xl: 1.4rem;
        --avatar-size-lg: 44px;
    }

    .dashboard-welcome {
        padding: var(--gap-md);
    }

    .dashboard-welcome-title {
        font-size: var(--font-size-lg);
    }

    .app-info-row {
        flex-direction: column;
    }

    .step-card-header {
        flex-wrap: wrap;
    }

    .student-card {
        padding: var(--gap-md);
    }

    .student-footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .student-footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .btn-student-primary,
    .btn-student-outline {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   SECTION 21 — ENTRY / AUTH PAGE
   ============================================================ */

/* Custom - Full page wrapper for the entry/login screen */
.entry-page {
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
    background-color: var(--bg-page);
    padding-block: var(--gap-xl);
    transition: background-color var(--transition-base);
}

/* Custom - Centering wrapper replacing min-vh-80 row */
.entry-center-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 80vh;
}

/* Custom - Column width constraint for the entry card */
.entry-col {
    width: 100%;
    max-width: 480px;
}

/* ── Header ─────────────────────────────────────────── */

/* Custom - Logo + title block above the card */
.entry-header {
    text-align: center;
    margin-bottom: var(--gap-lg);
}

/* Custom - Large logo displayed above entry card */
.entry-logo-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: var(--gap-md);
}

    .entry-logo-wrapper .logo-primary {
        font-size: 2.5rem;
        font-weight: 800;
    }

    .entry-logo-wrapper .logo-secondary {
        font-size: 2.5rem;
        font-weight: 800;
    }

.entry-title {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: var(--gap-xs);
    line-height: 1.3;
}

.entry-subtitle {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin: 0;
}

/* ── Card ────────────────────────────────────────────── */

/* Custom - Extra padding for the entry card */
.entry-card {
    padding: var(--gap-xl);
}

/* ── Error Alert ─────────────────────────────────────── */

/* Custom - Red alert box shown on passport not found */
.entry-alert {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    padding: 0.75rem var(--gap-md);
    border-radius: var(--radius-sm);
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid rgba(220, 53, 69, 0.25);
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: var(--gap-md);
}

    .entry-alert i {
        font-size: 1rem;
        flex-shrink: 0;
    }

/* ── Form ────────────────────────────────────────────── */

/* Custom - Form wrapper with spacing */
.entry-form {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}

/* Custom - Label + input group */
.entry-field-group {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.entry-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
}

/* Custom - Input wrapper for icon-inside pattern */
.entry-input-wrapper {
    position: relative;
}

/* Custom - Text input field base style */
.student-input {
    width: 100%;
    height: 50px;
    padding-inline: 2.8rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background-color: var(--bg-input);
    color: var(--text-main);
    font-size: var(--font-size-base);
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

    .student-input::placeholder {
        color: var(--text-light);
        font-family: var(--font-en);
    }

    .student-input:focus {
        border-color: var(--border-focus);
        background-color: var(--bg-card);
        box-shadow: 0 0 0 3px var(--primary-light);
    }

/* Custom - Passport icon inside input field (inline-end) */
.entry-input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-end: var(--gap-md);
    color: var(--text-light);
    font-size: 1rem;
    pointer-events: none;
    transition: color var(--transition-fast);
}

.student-input:focus ~ .entry-input-icon {
    color: var(--primary);
}

/* Custom - Helper text below input */
.entry-hint {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin: 0;
}

/* Custom - Full width submit button */
.entry-submit-btn {
    width: 100%;
    justify-content: center;
    height: 50px;
    font-size: var(--font-size-base);
}

/* Custom - Arrow icon flips in LTR */
.entry-btn-arrow {
    transition: transform var(--transition-fast);
}

body[dir="ltr"] .entry-btn-arrow {
    transform: rotate(180deg);
}

/* ── Divider ─────────────────────────────────────────── */

/* Custom - "أو / or" divider line between form and features */
.entry-divider {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    margin-block: var(--gap-lg);
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

    .entry-divider::before,
    .entry-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

/* ── Feature Items ───────────────────────────────────── */

/* Custom - Platform highlights below the divider */
.entry-features {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.entry-feature-item {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: 500;
}

/* Custom - Rounded icon box for each feature */
.entry-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 576px) {
    .entry-card {
        padding: var(--gap-lg);
    }

    .entry-title {
        font-size: var(--font-size-lg);
    }

    .entry-logo-wrapper .logo-primary,
    .entry-logo-wrapper .logo-secondary {
        font-size: 2rem;
    }
}
/* ============================================================
   SECTION 22 — LOGIN PAGE
   ============================================================ */

/* Custom - Large initial avatar shown at top of login page */
.login-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--text-on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin-inline: auto;
    margin-bottom: var(--gap-md);
    box-shadow: 0 6px 24px var(--primary-shadow);
    user-select: none;
    /* Custom - Subtle breathing animation on avatar */
    animation: avatar-breathe 3s ease-in-out infinite;
}

@keyframes avatar-breathe {
    0%,100% {
        box-shadow: 0 6px 24px var(--primary-shadow);
    }

    50% {
        box-shadow: 0 8px 32px rgba(229, 90, 117, 0.5);
    }
}

/* Custom - Student name displayed under welcome title */
.login-student-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary);
    margin-top: var(--gap-xs);
    margin-bottom: var(--gap-sm);
    line-height: 1.3;
}

/* Custom - Incomplete registration reminder badge */
.login-resume-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-xs);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--accent-yellow-light);
    color: var(--accent-yellow);
    border: 1px solid rgba(230, 168, 0, 0.3);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-top: var(--gap-sm);
}

/* ── Password input with dual icons ─────────────────── */

/* Custom - Extra padding to make room for both lock icon and eye button */
.entry-input--password {
    padding-inline-end: 2.8rem;
    padding-inline-start: 3rem;
}

/* Custom - Eye toggle button inside password input */
.entry-eye-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-start: var(--gap-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-xs);
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

    .entry-eye-btn:hover {
        color: var(--primary);
        background-color: var(--primary-light);
    }

/* ── Not-me back link ───────────────────────────────── */

/* Custom - Secondary link to go back and change passport number */
.entry-notme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-sm);
    width: 100%;
    padding: 0.6rem var(--gap-md);
    border-radius: var(--radius-sm);
    border: 1.5px dashed var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    margin-top: var(--gap-sm);
    transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}

    .entry-notme-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
        background-color: var(--primary-light);
        border-style: solid;
    }

    .entry-notme-btn i {
        font-size: 0.9rem;
        flex-shrink: 0;
    }

/* ============================================================
   SECTION 23 — SUCCESS PAGE
   ============================================================ */

/* Custom - Full-height wrapper matching entry-page pattern */
.success-page {
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
    background-color: var(--bg-page);
    padding-block: var(--gap-xl);
    transition: background-color var(--transition-base);
}

/* Custom - Centering wrapper */
.success-center-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 80vh;
}

/* Custom - Width constraint for the success card */
.success-col {
    width: 100%;
    max-width: 560px;
}

/* Custom - Card with centered text layout */
.success-card {
    padding: var(--gap-xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
}

/* ── Animated checkmark ──────────────────────────────── */

/* Custom - Outer ring wrapper for the success check animation */
.success-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-circle {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--secondary), var(--secondary-hover));
    color: var(--text-on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 8px 32px rgba(38, 144, 78, 0.35);
    /* Custom - Pop-in animation on page load */
    animation: success-pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes success-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    70% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Custom - Continuous pulse glow after pop-in */
.success-circle::after {
    content: '';
    position: absolute;
    width: 88px;
    height: 88px;
    border-radius: var(--radius-pill);
    background: rgba(38, 144, 78, 0.2);
    animation: success-glow 2s ease-in-out 0.6s infinite;
}

.success-icon-wrapper {
    position: relative;
}

@keyframes success-glow {
    0%,100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.35);
        opacity: 0;
    }
}

/* ── Heading & subtitle ──────────────────────────────── */

.success-title {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
    margin: 0;
}

.success-subtitle {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    max-width: 380px;
    margin-inline: auto;
    line-height: 1.6;
}

/* ── Application summary box ─────────────────────────── */

/* Custom - Bordered info box containing application details */
.success-app-box {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--gap-md);
    text-align: start;
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

/* Custom - Application number highlighted row */
.success-app-number {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.success-app-number-icon {
    color: var(--primary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.success-app-number-value {
    color: var(--primary);
    font-weight: 800;
    font-size: var(--font-size-base);
}

/* Custom - Thin divider inside the app box */
.success-app-divider {
    height: 1px;
    background: var(--border);
    margin-block: var(--gap-md);
    transition: background-color var(--transition-base);
}

/* Custom - List of application detail rows */
.success-app-details {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}

/* Custom - Single detail row: icon + label/value stack */
.success-app-detail-item {
    display: flex;
    align-items: flex-start;
    gap: var(--gap-md);
}

/* Custom - Colored icon box for each detail */
.success-detail-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Custom - Label + value stacked vertically */
.success-detail-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.success-detail-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    font-weight: 500;
}

.success-detail-value {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-main);
}

/* Custom - Status value in primary color */
.success-detail-value--primary {
    color: var(--primary);
}

/* ── Next steps section ──────────────────────────────── */

/* Custom - "What happens next?" guide block */
.success-next-steps {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--gap-md) var(--gap-lg);
    text-align: start;
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

.success-next-title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: var(--gap-md);
}

/* Custom - Vertical list of numbered steps */
.success-steps-list {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}

/* Custom - Single step row with number dot + text */
.success-step-item {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: 500;
}

/* Custom - Numbered circle dot for each step */
.success-step-dot {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--text-on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xs);
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 2px 8px var(--primary-shadow);
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 576px) {
    .success-card {
        padding: var(--gap-lg);
    }

    .success-circle {
        width: 72px;
        height: 72px;
        font-size: 1.8rem;
    }

    .success-title {
        font-size: var(--font-size-lg);
    }

    .success-next-steps {
        padding: var(--gap-md);
    }
}

/* ============================================================
   SECTION 24 — PAGE HEADER (docs-page-header pattern)
   ============================================================ */

/* Custom - Reusable page header bar used across list pages */
.docs-page-header {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    flex-wrap: wrap;
    padding: var(--gap-lg) var(--gap-xl);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    margin-bottom: var(--gap-lg);
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

/* Custom - Title + subtitle block inside page header */
.docs-page-title-wrap {
    flex: 1 1 auto;
}

.docs-page-title {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 var(--gap-xs);
    line-height: 1.3;
}

.docs-page-title-icon {
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.docs-page-subtitle {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin: 0;
}

/* Custom - Circular back button beside header actions */
.docs-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border);
    background: var(--bg-input);
    color: var(--text-muted);
    flex-shrink: 0;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

    .docs-back-btn:hover {
        background-color: var(--primary-light);
        border-color: var(--border-focus);
        color: var(--primary);
        transform: translateX(3px); /* RTL: nudge right = back */
    }

body[dir="ltr"] .docs-back-btn:hover {
    transform: translateX(-3px);
}

/* Custom - Flip back arrow in LTR mode */
.docs-back-arrow {
    font-size: 0.9rem;
    transition: transform var(--transition-fast);
}

body[dir="ltr"] .docs-back-arrow {
    transform: rotate(180deg);
}

/* Custom - Empty state text sizes */
.docs-empty-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.docs-empty-sub {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin: 0;
}


/* ============================================================
   SECTION 25 — APPLICATION CARD
   ============================================================ */

/* Custom - New accent color variables for application status badges */
:root {
    --accent-purple: #6f42c1;
    --accent-purple-light: rgba(111, 66, 193, 0.12);
    --accent-orange: #fd7e14;
    --accent-orange-light: rgba(253, 126, 20, 0.12);
}

/* Custom - Individual application card */
.application-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base), border-color var(--transition-base);
}

    .application-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-hover);
    }

/* ── Card Header ─────────────────────────────────────── */

/* Custom - Colored top section with university info */
.application-card-header {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    padding: var(--gap-md) var(--gap-md);
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-base);
}

/* Custom - Graduation cap icon circle */
.application-card-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--text-on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--primary-shadow);
}

/* Custom - University name block */
.application-card-university {
    flex: 1;
    overflow: hidden;
}

.application-card-university-ar {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 1.4;
}

.application-card-university-en {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    font-family: var(--font-en);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 1.4;
}

/* ── Card Body ───────────────────────────────────────── */

/* Custom - Main content area of the application card */
.application-card-body {
    padding: var(--gap-md);
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
    flex: 1;
}

/* Custom - Program name row */
.application-card-program {
    display: flex;
    align-items: center;
    gap: var(--gap-xs);
    font-size: var(--font-size-sm);
    color: var(--text-main);
    font-weight: 500;
    flex-wrap: wrap;
}

.application-card-program-icon {
    color: var(--primary);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.application-card-program-en {
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    font-family: var(--font-en);
}

/* Custom - Submission date/time row */
.application-card-date {
    display: flex;
    align-items: center;
    gap: var(--gap-xs);
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    flex-wrap: wrap;
}

.application-card-date-sep {
    color: var(--border);
    margin-inline: 2px;
}

/* Custom - Dynamic status badge */
.application-card-status {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-xs);
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: var(--font-size-xs);
    font-weight: 700;
    width: fit-content;
    line-height: 1.4;
}

/* ── Card Footer ─────────────────────────────────────── */

/* Custom - Footer with view details button */
.application-card-footer {
    padding: var(--gap-md);
    border-top: 1px solid var(--border);
    transition: border-color var(--transition-base);
}

/* Custom - Secondary outline button used in card footer */
.btn-student-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-sm);
    width: 100%;
    padding: 0.55rem var(--gap-md);
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--bg-input);
    color: var(--text-main);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
    cursor: pointer;
}

    .btn-student-secondary:hover {
        background-color: var(--primary-light);
        border-color: var(--border-focus);
        color: var(--primary);
        transform: translateY(-1px);
    }

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 767px) {
    .docs-page-header {
        padding: var(--gap-md);
    }

    .docs-page-title {
        font-size: var(--font-size-lg);
    }
}

@media (max-width: 480px) {
    .application-card-header {
        flex-direction: column;
        text-align: center;
    }

    .application-card-university {
        width: 100%;
    }

    .application-card-university-ar,
    .application-card-university-en {
        white-space: normal;
    }
}
/* ============================================================
   SECTION 26 — APPLICATION DETAILS PAGE
   ============================================================ */

/* Custom - Application number shown in page title */
.appdetail-number {
    color: var(--primary);
    font-weight: 800;
    font-size: inherit;
}

/* ── Status Stepper ──────────────────────────────────── */

/* Custom - Card containing the horizontal progress stepper */
.appdetail-stepper-card {
    overflow: visible;
}

/* Custom - Outer wrapper providing space for step labels */
.appdetail-stepper {
    position: relative;
    padding-block: var(--gap-xl) var(--gap-lg);
    padding-inline: var(--gap-md);
    overflow-x: auto;
}

/* Custom - Horizontal grey background track line */
.appdetail-stepper-track {
    position: absolute;
    top: calc(var(--gap-xl) + 18px); /* center of 38px dot */
    inset-inline-start: var(--gap-md);
    inset-inline-end: var(--gap-md);
    height: 4px;
    background: var(--border);
    border-radius: var(--radius-pill);
    overflow: hidden;
    transition: background-color var(--transition-base);
}

/* Custom - Green fill overlay showing progress */
.appdetail-stepper-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-hover));
    border-radius: var(--radius-pill);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom - Row of step items above the track */
.appdetail-stepper-steps {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--gap-sm);
    min-width: 500px; /* enables horizontal scroll on small screens */
}

/* Custom - Single step (dot + label) */
.appdetail-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-sm);
    flex: 1;
    text-align: center;
}

/* Custom - Step circle dot base */
.appdetail-step-dot {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    border: 2px solid var(--border);
    background: var(--bg-input);
    color: var(--text-muted);
    box-shadow: var(--shadow-card);
    transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), color var(--transition-base);
    position: relative;
    z-index: 1;
}

/* Custom - Completed step dot */
.appdetail-step-dot--done {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--text-on-primary);
}

/* Custom - Current active step dot with pulse ring */
.appdetail-step-dot--active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-on-primary);
    box-shadow: 0 0 0 5px var(--primary-light), var(--shadow-card);
    animation: pulse-dot 1.8s infinite;
}

/* Custom - Pending (future) step dot */
.appdetail-step-dot--pending {
    background: var(--bg-input);
    border-color: var(--border);
    color: var(--text-muted);
}

/* Custom - Step label text */
.appdetail-step-label {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    max-width: 80px;
    word-break: break-word;
}

.appdetail-step-label--active {
    color: var(--primary);
}

.appdetail-step-label--done {
    color: var(--text-main);
}

.appdetail-step-label--pending {
    color: var(--text-muted);
}

/* ── Info Grid ───────────────────────────────────────── */

/* Custom - 2-column grid of application key/value pairs */
.appdetail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-md);
    margin-bottom: var(--gap-md);
}

@media (max-width: 576px) {
    .appdetail-info-grid {
        grid-template-columns: 1fr;
    }
}

.appdetail-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.appdetail-info-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    font-weight: 500;
}

.appdetail-info-value {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-main);
}

/* Custom - Status badge inline in info grid */
.appdetail-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-pill);
    background: var(--primary-light);
    color: var(--primary);
    font-size: var(--font-size-xs);
    font-weight: 700;
    width: fit-content;
}

/* Custom - Thin divider inside detail card */
.appdetail-divider {
    height: 1px;
    background: var(--border);
    margin-block: var(--gap-lg);
    transition: background-color var(--transition-base);
}

/* Custom - Section sub-heading inside card */
.appdetail-section-label {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: var(--gap-md);
}

/* ── Options / Preferences Grid ─────────────────────── */

/* Custom - Service preference items (smoking, family, transfer) */
.appdetail-options-grid {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.appdetail-option-item {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    padding: 0.6rem var(--gap-md);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    border: 1px solid var(--border);
    font-size: var(--font-size-sm);
    color: var(--text-main);
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

.appdetail-option-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Custom - Icon color states */
.appdetail-option-icon--yes {
    color: var(--secondary);
}

.appdetail-option-icon--no {
    color: var(--text-light);
}

.appdetail-option-icon--warn {
    color: var(--accent-yellow);
}

.appdetail-option-label {
    flex: 1;
    color: var(--text-muted);
}

/* Custom - Yes/No/Warn value colors */
.appdetail-yes {
    color: var(--secondary);
}

.appdetail-no {
    color: var(--text-muted);
}

.appdetail-warn {
    color: var(--accent-yellow);
}

/* ── Student Note ────────────────────────────────────── */

/* Custom - Student-supplied note at bottom of detail card */
.appdetail-note {
    margin-top: var(--gap-lg);
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.appdetail-note-text {
    padding: var(--gap-md);
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border-inline-start: 3px solid var(--primary);
    color: var(--text-main);
    font-size: var(--font-size-sm);
    line-height: 1.7;
    margin: 0;
    transition: background-color var(--transition-base);
}

/* ── Admin Response Card ─────────────────────────────── */

/* Custom - Admin reply card with blue accent border */
.appdetail-admin-card {
    border-inline-start: 4px solid var(--accent-blue) !important;
}

.appdetail-admin-icon {
    background: linear-gradient(135deg, var(--accent-blue), #4d94ff) !important;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.28) !important;
}

.appdetail-admin-text {
    font-size: var(--font-size-sm);
    color: var(--text-main);
    line-height: 1.7;
    margin: 0;
    padding: var(--gap-md);
    background: var(--accent-blue-light);
    border-radius: var(--radius-sm);
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 767px) {
    .appdetail-stepper {
        padding-block: var(--gap-lg) var(--gap-md);
    }

    .appdetail-stepper-track {
        top: calc(var(--gap-lg) + 18px);
    }

    .appdetail-step-label {
        font-size: 0.65rem;
        max-width: 60px;
    }
}

/* ============================================================
   SECTION 27 — DOCUMENTS PAGE
   ============================================================ */

/* Custom - Document count badge in page title */
.docs-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding-inline: 6px;
    border-radius: var(--radius-pill);
    background: var(--primary-light);
    color: var(--primary);
    font-size: var(--font-size-xs);
    font-weight: 800;
    margin-inline-start: var(--gap-sm);
    vertical-align: middle;
}

/* ── Document Card ───────────────────────────────────── */

/* Custom - Individual document card */
.doc-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base), border-color var(--transition-base);
}

    .doc-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-hover);
    }

/* Custom - Image container with fixed aspect ratio */
.doc-card-img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bg-input);
    flex-shrink: 0;
}

/* Custom - Document thumbnail image */
.doc-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-base);
}

.doc-card:hover .doc-card-img {
    transform: scale(1.05);
}

/* Custom - Pink overlay shown on image hover */
.doc-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(229, 90, 117, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.doc-card-img-wrap:hover .doc-card-overlay {
    opacity: 1;
}

.doc-card-overlay-icon {
    color: var(--text-on-primary);
    font-size: 2rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

/* ── Card Body ───────────────────────────────────────── */

/* Custom - Card body below the image */
.doc-card-body {
    padding: var(--gap-md);
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
    flex: 1;
}

/* Custom - Document type name */
.doc-card-title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Custom - English sub-title of document type */
.doc-card-title-en {
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--text-muted);
    font-family: var(--font-en);
}

/* Custom - Upload date row */
.doc-card-date {
    display: flex;
    align-items: center;
    gap: var(--gap-xs);
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* Custom - Delete button at bottom of card */
.doc-card-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-xs);
    width: 100%;
    padding: 0.5rem var(--gap-md);
    margin-top: auto;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(220, 53, 69, 0.35);
    background: var(--danger-light);
    color: var(--danger);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

    .doc-card-delete-btn:hover {
        background-color: var(--danger);
        border-color: var(--danger);
        color: var(--text-on-primary);
        transform: translateY(-1px);
    }

/* ── Delete Confirmation Modal ───────────────────────── */

/* Custom - Modal panel styling */
.doc-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-dropdown);
    overflow: hidden;
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

/* Custom - Top row containing only the close X button */
.doc-modal-close-row {
    display: flex;
    justify-content: flex-end;
    padding: var(--gap-md) var(--gap-md) 0;
}

.doc-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

    .doc-modal-close:hover {
        background-color: var(--danger-light);
        color: var(--danger);
        border-color: rgba(220, 53, 69, 0.3);
    }

/* Custom - Modal body with centered content */
.doc-modal-body {
    padding: var(--gap-md) var(--gap-xl) var(--gap-lg);
    text-align: center;
}

/* Custom - Large warning triangle icon */
.delete-confirm-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-pill);
    background: var(--danger-light);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-inline: auto;
    margin-bottom: var(--gap-md);
    /* Custom - Shake animation on modal open */
    animation: shake-warn 0.5s ease both;
}

@keyframes shake-warn {
    0%,100% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    40% {
        transform: rotate(8deg);
    }

    60% {
        transform: rotate(-5deg);
    }

    80% {
        transform: rotate(5deg);
    }
}

/* Custom - "Are you sure?" heading in modal */
.delete-confirm-text {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: var(--gap-sm);
}

/* Custom - Sub-text with document name */
.delete-confirm-sub {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: var(--gap-md);
    line-height: 1.6;
}

/* Custom - Document name highlighted red */
.delete-confirm-doc-name {
    color: var(--danger);
    font-weight: 700;
}

/* Custom - Reason textarea group */
.delete-reason-group {
    text-align: start;
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.delete-reason-label {
    display: flex;
    align-items: center;
    gap: var(--gap-xs);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
}

/* Custom - Textarea inherits student-input + extra height */
.doc-reason-textarea {
    width: 100%;
    height: auto;
    resize: vertical;
    min-height: 80px;
    padding: var(--gap-sm) var(--gap-md);
    line-height: 1.6;
}

/* Custom - Modal footer with action buttons */
.doc-modal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-md);
    padding: 0 var(--gap-xl) var(--gap-xl);
    flex-wrap: wrap;
}

/* Custom - Delete submit button in danger red */
.doc-modal-delete-btn {
    background: linear-gradient(135deg, var(--danger), #c0392b) !important;
    box-shadow: 0 4px 14px rgba(220, 53, 69, 0.4) !important;
}

    .doc-modal-delete-btn:hover {
        box-shadow: 0 6px 20px rgba(220, 53, 69, 0.55) !important;
    }

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 576px) {
    .doc-modal-body {
        padding-inline: var(--gap-md);
    }

    .doc-modal-footer {
        padding-inline: var(--gap-md);
    }

    .delete-confirm-icon {
        width: 58px;
        height: 58px;
        font-size: 1.5rem;
    }
}

/* ============================================================
   SECTION 28 — EDIT PROFILE / STEP FORM COMPONENTS
   ============================================================ */

/* ── Form Field Group ────────────────────────────────── */

/* Custom - Wrapper for each label + input + error unit */
.step-field {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

/* Custom - Field label */
.step-label-field {
    display: flex;
    align-items: center;
    gap: var(--gap-xs);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    line-height: 1.3;
}

/* Custom - Required field asterisk */
.req-star {
    color: var(--primary);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
}

/* ── Input Wrapper with Icon ─────────────────────────── */

/* Custom - Relative container for input + icon pattern */
.step-input-wrapper {
    position: relative;
}

/* Custom - Icon positioned inside input on the end side */
.step-input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-end: var(--gap-md);
    color: var(--text-light);
    font-size: 0.95rem;
    pointer-events: none;
    transition: color var(--transition-fast);
}

/* Custom - Lift icon color on input focus */
.step-input-wrapper:focus-within .step-input-icon {
    color: var(--primary);
}

/* Custom - Pad input to prevent text behind icon */
.step-input-wrapper .student-input {
    padding-inline-end: 2.8rem;
}

/* Custom - Select dropdown: hide default arrow, show icon */
.step-input-wrapper select.student-input {
    appearance: none;
    -webkit-appearance: none;
    padding-inline-end: 2.8rem;
    cursor: pointer;
}

/* ── Validation Error ────────────────────────────────── */

/* Custom - Field-level validation error message */
.step-error {
    font-size: var(--font-size-xs);
    color: var(--danger);
    font-weight: 500;
    display: block;
    min-height: 1rem;
}

/* ── Info Box ────────────────────────────────────────── */

/* Custom - Hint/info box below form sections */
.step-info-box {
    display: flex;
    align-items: flex-start;
    gap: var(--gap-sm);
    padding: var(--gap-md);
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    border: 1px solid rgba(229, 90, 117, 0.2);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: 1.6;
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

.step-info-icon {
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Custom - Success variant of info box (green) */
.step-info-box--success {
    background: var(--secondary-light);
    border-color: rgba(38, 144, 78, 0.2);
}

.step-info-icon--success {
    color: var(--secondary);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Step Card Icon Variants ─────────────────────────── */

/* Custom - Green gradient icon variant for password card */
.step-card-icon--green {
    background: linear-gradient(135deg, var(--secondary), #34a85a) !important;
    box-shadow: 0 4px 10px rgba(38, 144, 78, 0.28) !important;
}

/* ── Validation Alert Banner ─────────────────────────── */

/* Custom - Top-of-form error summary alert */
.edit-profile-alert {
    display: flex;
    flex-direction: column;
    gap: var(--gap-xs);
    padding: var(--gap-md) var(--gap-lg);
    border-radius: var(--radius-sm);
    background: var(--danger-light);
    border: 1px solid rgba(220, 53, 69, 0.25);
    color: var(--danger);
    font-size: var(--font-size-sm);
}

/* ── Form Action Buttons Row ─────────────────────────── */

/* Custom - Cancel + Save buttons row at bottom of form */
.edit-profile-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--gap-md);
    padding-top: var(--gap-md);
    border-top: 1px solid var(--border);
    margin-top: var(--gap-sm);
    transition: border-color var(--transition-base);
}

/* Custom - Back arrow flips direction in LTR */
.edit-profile-back-arrow {
    transition: transform var(--transition-fast);
}

body[dir="ltr"] .edit-profile-back-arrow {
    transform: rotate(180deg);
}

/* Custom - Save arrow flips direction in LTR */
.edit-profile-save-arrow {
    transition: transform var(--transition-fast);
}

body[dir="ltr"] .edit-profile-save-arrow {
    transform: rotate(180deg);
}

/* ── English-Only Input ──────────────────────────────── */

/* Custom - Enforce LTR font for fields that accept only English */
.english-only {
    font-family: var(--font-en) !important;
    direction: ltr !important;
}

    .english-only::placeholder {
        font-family: var(--font-en);
        color: var(--text-light);
    }

/* ── student-input: textarea extension ──────────────── */

/* Custom - Allow student-input class on textarea elements */
textarea.student-input {
    height: auto;
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
    padding-block: var(--gap-sm);
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 767px) {
    .edit-profile-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

        .edit-profile-actions .btn-student-primary,
        .edit-profile-actions .btn-student-outline {
            width: 100%;
            justify-content: center;
        }
}


/* ============================================================
   SECTION 29 — NOTIFICATIONS PAGE
   ============================================================ */

/* Custom - Total count pill in page header */
.notif-total-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-xs);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--primary-light);
    color: var(--primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border: 1px solid rgba(229, 90, 117, 0.2);
    white-space: nowrap;
}

/* Custom - Unread count badge (red variant of docs-count-badge) */
.notif-unread-badge {
    background: var(--primary);
    color: var(--text-on-primary);
}

/* Custom - Notifications panel: remove default card padding
   to let list items span full width */
.notif-card {
    padding: 0;
    overflow: hidden;
}

/* ── Notifications List ──────────────────────────────── */

/* Custom - Flush list container */
.notif-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Custom - Single notification row */
.notif-item {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    padding: var(--gap-md) var(--gap-xl);
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    transition: background-color var(--transition-fast), border-color var(--transition-base);
    position: relative;
}

    .notif-item:last-child {
        border-bottom: none;
    }

    .notif-item:hover {
        background-color: var(--bg-hover);
    }

/* Custom - Unread notification has a left accent bar */
.notif-item--unread {
    background-color: var(--primary-light);
}

    .notif-item--unread::before {
        content: '';
        position: absolute;
        inset-inline-start: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--primary);
        border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    }

/* ── Notification Icon ───────────────────────────────── */

/* Custom - Icon circle on the start side */
.notif-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-pill);
    background: var(--accent-blue-light);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: background-color var(--transition-base), color var(--transition-base);
}

/* Custom - Unread item icon uses primary color */
.notif-item--unread .notif-icon-wrap {
    background: var(--primary-light);
    color: var(--primary);
}

.notif-icon {
    font-size: 1.05rem;
}

/* ── Notification Content ────────────────────────────── */

/* Custom - Text block grows to fill available space */
.notif-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

/* Custom - Title row with unread dot */
.notif-title-row {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    flex-wrap: wrap;
}

.notif-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

/* Custom - Application number inside title */
.notif-order-no {
    color: var(--primary);
    font-weight: 800;
}

/* Custom - Small pulsing dot for unread notifications */
.notif-unread-dot {
    width: 9px;
    height: 9px;
    border-radius: var(--radius-pill);
    background: var(--primary);
    flex-shrink: 0;
    display: inline-block;
    animation: pulse-dot 1.8s infinite;
}

/* Custom - Date/time row */
.notif-date {
    display: flex;
    align-items: center;
    gap: var(--gap-xs);
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* ── Notification Action Button ──────────────────────── */

/* Custom - "View Application" pill button */
.notif-action {
    flex-shrink: 0;
}

.notif-view-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-xs);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border-focus);
    background: transparent;
    color: var(--primary);
    font-size: var(--font-size-xs);
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

    .notif-view-btn:hover {
        background-color: var(--primary);
        color: var(--text-on-primary);
        transform: translateY(-1px);
    }

/* Custom - Arrow direction flips in LTR */
.notif-btn-arrow {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

body[dir="ltr"] .notif-btn-arrow {
    transform: rotate(180deg);
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 767px) {
    .notif-item {
        padding: var(--gap-md);
    }

    .notif-total-badge {
        display: none;
    }

    /* Custom - Stack action below content on small screens */
    .notif-item {
        flex-wrap: wrap;
    }

    .notif-action {
        width: 100%;
        padding-inline-start: calc(46px + var(--gap-md));
    }
}

@media (max-width: 480px) {
    .notif-icon-wrap {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
}