/* =========================================================
   FUTUREVERSE — INSTRUCTOR DASHBOARD
   Premium Mobile-First Dashboard
========================================================= */


/* =========================================================
   01. ROOT VARIABLES
========================================================= */

:root {
    --primary: #2457a6;
    --primary-dark: #183f7a;
    --primary-light: #eaf1ff;

    --accent: #4f7ee8;
    --success: #2e9b62;
    --success-light: #e9f7ef;

    --warning: #e6a51a;
    --warning-light: #fff6df;

    --danger: #d94a4a;
    --danger-light: #fff0f0;

    --text: #151a23;
    --text-secondary: #667085;
    --text-muted: #98a2b3;

    --background: #f5f7fa;
    --surface: #ffffff;
    --surface-soft: #f8faff;

    --border: #e7eaf0;

    --shadow-sm:
        0 2px 8px rgba(20, 35, 60, 0.05);

    --shadow-md:
        0 8px 24px rgba(20, 35, 60, 0.08);

    --shadow-lg:
        0 16px 40px rgba(20, 35, 60, 0.12);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 30px;

    --header-height: 68px;
    --bottom-nav-height: 72px;

    --transition:
        180ms ease;
}


/* =========================================================
   02. RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--background);
    color: var(--text);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    overflow-x: hidden;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

button:focus-visible {
    outline: 3px solid rgba(36, 87, 166, 0.25);
    outline-offset: 3px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   03. MAIN APP
========================================================= */

.instructor-dashboard-app {
    min-height: 100vh;
    position: relative;
}


/* =========================================================
   04. TOP HEADER
========================================================= */

.dashboard-header {
    height: var(--header-height);

    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 18px;

    background:
        linear-gradient(
            135deg,
            #2457a6 0%,
            #1d4b91 55%,
            #183f7a 100%
        );

    color: #ffffff;

    box-shadow:
        0 4px 18px rgba(22, 57, 110, 0.18);
}


/* Header left */

.header-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* Icon buttons */

.icon-btn {
    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    color: inherit;

    border-radius: 50%;

    transition:
        background var(--transition),
        transform var(--transition);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.icon-btn:active {
    transform: scale(0.94);
}


/* Brand */

.brand-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.16);

    border: 1px solid rgba(255, 255, 255, 0.18);

    font-size: 14px;
    font-weight: 800;

    letter-spacing: -0.5px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text span {
    font-size: 15px;
    font-weight: 750;
}

.brand-text small {
    margin-top: 3px;

    font-size: 10px;
    font-weight: 500;

    opacity: 0.72;

    letter-spacing: 0.4px;
}


/* Notification */

.notification-btn {
    position: relative;
}

.notification-dot {
    width: 7px;
    height: 7px;

    position: absolute;
    top: 8px;
    right: 9px;

    border-radius: 50%;

    background: #ff5d67;

    border: 2px solid var(--primary);
}


/* Profile */

.profile-mini {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: var(--primary);

    background: #ffffff;

    font-size: 14px;
    font-weight: 800;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.12);

    transition:
        transform var(--transition);
}

.profile-mini:active {
    transform: scale(0.94);
}


/* =========================================================
   05. MOBILE SIDE MENU
========================================================= */

.menu-overlay {
    position: fixed;
    inset: 0;

    z-index: 1100;

    background: rgba(9, 18, 35, 0.42);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 220ms ease,
        visibility 220ms ease;

    backdrop-filter: blur(3px);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


.mobile-menu {
    width: min(88vw, 340px);
    height: 100vh;

    position: fixed;
    top: 0;
    left: 0;

    z-index: 1200;

    display: flex;
    flex-direction: column;

    background: var(--surface);

    box-shadow:
        12px 0 40px rgba(10, 25, 50, 0.16);

    transform: translateX(-105%);

    transition:
        transform 280ms cubic-bezier(.22, .8, .25, 1);

    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}


/* Menu header */

.menu-header {
    min-height: 84px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 20px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #2457a6,
            #183f7a
        );
}

.menu-header .icon-btn {
    color: #ffffff;
}

.menu-title {
    display: block;

    font-size: 18px;
    font-weight: 750;
}

.menu-header small {
    display: block;

    margin-top: 4px;

    font-size: 11px;
    opacity: 0.72;
}


/* Menu profile */

.menu-profile {
    margin: 18px 16px;

    padding: 14px;

    display: flex;
    align-items: center;

    gap: 12px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #f1f6ff,
            #f8faff
        );

    border: 1px solid #e4ebf8;
}

.menu-avatar {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: var(--primary);

    color: #ffffff;

    font-weight: 800;
}

.menu-profile strong {
    display: block;

    font-size: 14px;
    font-weight: 700;
}

.menu-profile span {
    display: block;

    margin-top: 3px;

    max-width: 190px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: var(--text-secondary);

    font-size: 11px;
}


/* Menu navigation */

.menu-navigation {
    padding: 0 12px;
}

.menu-item {
    width: 100%;

    min-height: 54px;

    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 4px;
    padding: 9px 11px;

    background: transparent;

    color: var(--text-secondary);

    border-radius: 14px;

    text-align: left;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.menu-item:hover {
    background: #f4f7fc;
    color: var(--text);
}

.menu-item:active {
    transform: scale(0.985);
}

.menu-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.menu-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #f2f4f8;

    font-size: 15px;
}

.menu-item.active .menu-icon {
    background: #dbe8ff;
}

.menu-icon.create-icon {
    color: #ffffff;
    background: var(--primary);
}

.menu-item > span:not(.menu-icon):not(.menu-badge) {
    flex: 1;

    font-size: 14px;
    font-weight: 600;
}

.menu-item > i:last-child {
    font-size: 10px;
    opacity: 0.45;
}

.menu-badge {
    min-width: 22px;
    height: 22px;

    padding: 0 6px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    color: #ffffff;
    background: var(--primary);

    font-size: 10px;
    font-weight: 700;
}


/* Divider */

.menu-divider {
    height: 1px;

    margin: 12px 20px;

    background: var(--border);
}


/* Menu bottom */

.menu-bottom {
    padding: 0 12px 20px;
    margin-top: auto;
}

.logout-item {
    color: var(--danger);
}

.logout-item .menu-icon {
    color: var(--danger);
    background: var(--danger-light);
}


/* =========================================================
   06. MAIN CONTENT
========================================================= */

.dashboard-main {
    width: 100%;

    padding:
        22px
        16px
        calc(var(--bottom-nav-height) + 26px);
}


/* =========================================================
   07. WELCOME SECTION
========================================================= */

.welcome-section {
    display: flex;
    flex-direction: column;

    gap: 18px;

    margin-bottom: 22px;
}

.welcome-label {
    display: inline-block;

    margin-bottom: 7px;

    color: var(--primary);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.2px;
}

.welcome-section h1 {
    max-width: 620px;

    font-size: 27px;
    line-height: 1.18;

    letter-spacing: -0.7px;
}

.welcome-section h1 span {
    color: var(--primary);
}

.welcome-section p {
    max-width: 580px;

    margin-top: 8px;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.55;
}


/* Header create button */

.header-create-btn {
    width: 100%;
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border-radius: 14px;

    background: var(--primary);
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    box-shadow:
        0 7px 18px rgba(36, 87, 166, 0.22);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.header-create-btn:hover {
    box-shadow:
        0 10px 24px rgba(36, 87, 166, 0.28);
}

.header-create-btn:active {
    transform: scale(0.98);
}


/* =========================================================
   08. QUICK NAVIGATION
========================================================= */

.quick-navigation {
    width: 100%;

    display: flex;

    gap: 10px;

    margin-bottom: 28px;

    overflow-x: auto;

    scrollbar-width: none;
}

.quick-navigation::-webkit-scrollbar {
    display: none;
}

.quick-nav-item {
    min-width: 78px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 7px;

    padding: 2px 5px;

    background: transparent;

    color: var(--text-secondary);

    font-size: 10px;
    font-weight: 600;

    white-space: nowrap;
}

.quick-nav-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: #ffffff;

    color: #7a8494;

    box-shadow:
        var(--shadow-sm);

    font-size: 17px;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.quick-nav-item.active {
    color: var(--text);
}

.quick-nav-item.active .quick-nav-icon {
    color: #ffffff;
    background: var(--primary);

    box-shadow:
        0 7px 18px rgba(36, 87, 166, 0.24);
}

.quick-nav-item:active .quick-nav-icon {
    transform: scale(0.94);
}


/* =========================================================
   09. SECTIONS
========================================================= */

.dashboard-section {
    margin-bottom: 30px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 14px;

    margin-bottom: 15px;
}

.section-kicker {
    display: block;

    margin-bottom: 4px;

    color: var(--primary);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1px;
}

.section-heading h2 {
    font-size: 20px;
    line-height: 1.2;

    letter-spacing: -0.35px;
}

.text-action {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    background: transparent;

    color: var(--primary);

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;
}


/* =========================================================
   10. STATISTICS
========================================================= */

.stats-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px;
}

.stat-card {
    min-height: 142px;

    padding: 15px;

    position: relative;

    border-radius: 20px;

    background: var(--surface);

    border: 1px solid rgba(0, 0, 0, 0.035);

    box-shadow: var(--shadow-sm);

    overflow: hidden;
}

.stat-card::after {
    content: "";

    width: 70px;
    height: 70px;

    position: absolute;
    right: -22px;
    bottom: -28px;

    border-radius: 50%;

    background: rgba(36, 87, 166, 0.035);
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    color: var(--primary);
    background: var(--primary-light);

    font-size: 15px;
}

.students-stat .stat-icon {
    color: #3d8d68;
    background: #e9f7ef;
}

.published-stat .stat-icon {
    color: #247c57;
    background: #e8f7ef;
}

.activity-stat .stat-icon {
    color: #a36b00;
    background: #fff4dc;
}

.stat-arrow {
    color: #b0b7c2;

    font-size: 11px;
}

.stat-value {
    margin-top: 15px;

    font-size: 24px;
    font-weight: 800;

    letter-spacing: -0.7px;
}

.stat-label {
    margin-top: 4px;

    color: var(--text-secondary);

    font-size: 11px;
    font-weight: 550;
}


/* =========================================================
   11. CREATE COURSE FEATURE CARD
========================================================= */

.create-course-card {
    margin-bottom: 30px;

    padding: 20px;

    border-radius: 24px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #2457a6 0%,
            #356cc4 52%,
            #1d4b91 100%
        );

    box-shadow:
        0 14px 32px rgba(36, 87, 166, 0.20);

    overflow: hidden;

    position: relative;
}

.create-course-card::before {
    content: "";

    width: 150px;
    height: 150px;

    position: absolute;
    right: -55px;
    top: -60px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);
}

.create-course-card::after {
    content: "";

    width: 100px;
    height: 100px;

    position: absolute;
    left: -45px;
    bottom: -55px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.05);
}

.create-course-content {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: flex-start;

    gap: 13px;
}

.create-course-icon {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.14);

    font-size: 17px;
}

.card-kicker {
    display: block;

    margin-bottom: 5px;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1px;

    opacity: 0.7;
}

.create-course-content h2 {
    font-size: 19px;

    letter-spacing: -0.3px;
}

.create-course-content p {
    max-width: 290px;

    margin-top: 5px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 11px;
    line-height: 1.5;
}

.primary-action-btn {
    width: 100%;
    min-height: 46px;

    position: relative;
    z-index: 1;

    margin-top: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    border-radius: 13px;

    background: #ffffff;
    color: var(--primary);

    font-size: 12px;
    font-weight: 750;

    transition:
        transform var(--transition);
}

.primary-action-btn:active {
    transform: scale(0.98);
}


/* =========================================================
   12. COURSE LIST
========================================================= */

.courses-list {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.course-card {
    display: flex;

    min-height: 145px;

    overflow: hidden;

    border-radius: 20px;

    background: var(--surface);

    border: 1px solid rgba(0, 0, 0, 0.035);

    box-shadow: var(--shadow-sm);
}

.course-thumbnail {
    width: 100px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #dce8ff,
            #eef4ff
        );
}

.course-thumbnail-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    color: var(--primary);

    background: rgba(255, 255, 255, 0.7);

    font-size: 18px;
}

.course-info {
    min-width: 0;

    flex: 1;

    padding: 14px;
}

.course-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.course-status {
    display: inline-flex;
    align-items: center;

    min-height: 22px;

    padding: 0 8px;

    border-radius: 20px;

    font-size: 9px;
    font-weight: 700;
}

.course-status.draft {
    color: #9b6900;
    background: var(--warning-light);
}

.course-menu {
    color: var(--text-muted);

    font-size: 13px;
}

.course-info h3 {
    margin-top: 8px;

    overflow: hidden;

    font-size: 14px;
    font-weight: 750;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.course-info p {
    margin-top: 5px;

    display: -webkit-box;
    -webkit-box-orient: vertical;
  

    overflow: hidden;

    color: var(--text-secondary);

    font-size: 10px;
    line-height: 1.45;
}

.course-meta {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 10px;

    color: var(--text-muted);

    font-size: 9px;
}

.course-meta span {
    display: inline-flex;
    align-items: center;

    gap: 4px;
}


/* Empty state */

.course-empty-state {
    padding: 25px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    border: 1px dashed #d8dee8;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.55);
}

.empty-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    color: var(--primary);

    background: var(--primary-light);

    font-size: 17px;
}

.course-empty-state h3 {
    margin-top: 12px;

    font-size: 14px;
}

.course-empty-state p {
    max-width: 280px;

    margin-top: 5px;

    color: var(--text-secondary);

    font-size: 10px;
    line-height: 1.5;
}


/* =========================================================
   13. QUICK ACTIONS
========================================================= */

.quick-actions-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px;
}

.quick-action-card {
    min-height: 170px;

    position: relative;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 16px;

    text-align: left;

    border-radius: 20px;

    background: var(--surface);

    border: 1px solid var(--border);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.quick-action-card:hover {
    box-shadow: var(--shadow-md);
}

.quick-action-card:active {
    transform: scale(0.98);
}

.quick-action-card.primary {
    border-color: #cbdcff;

    background:
        linear-gradient(
            145deg,
            #f0f5ff,
            #ffffff
        );
}

.quick-action-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    color: var(--primary);
    background: var(--primary-light);

    font-size: 16px;
}

.quick-action-title {
    margin-top: 14px;

    font-size: 13px;
    font-weight: 750;
}

.quick-action-description {
    max-width: 135px;

    margin-top: 5px;

    color: var(--text-secondary);

    font-size: 10px;
    line-height: 1.45;
}

.action-corner {
    position: absolute;

    right: 13px;
    top: 15px;

    color: #b1b8c3;

    font-size: 10px;
}


/* =========================================================
   14. RECENT ACTIVITY
========================================================= */

.activity-card {
    overflow: hidden;

    border-radius: 22px;

    background: var(--surface);

    border: 1px solid rgba(0, 0, 0, 0.035);

    box-shadow: var(--shadow-sm);
}

.activity-item {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    padding: 17px;

    border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
    border-bottom: 0;
}

.activity-icon {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    color: var(--primary);

    background: var(--primary-light);

    font-size: 14px;
}

.activity-content {
    min-width: 0;
}

.activity-content strong {
    display: block;

    font-size: 12px;
    font-weight: 750;
}

.activity-content p {
    margin-top: 4px;

    color: var(--text-secondary);

    font-size: 10px;
    line-height: 1.45;
}

.activity-content small {
    display: block;

    margin-top: 7px;

    color: var(--text-muted);

    font-size: 9px;
}


/* =========================================================
   15. FOOTER
========================================================= */

.dashboard-footer {
    padding: 10px 0 15px;

    text-align: center;

    color: var(--text-muted);

    font-size: 9px;
}

.footer-brand {
    color: var(--primary);

    font-size: 12px;
    font-weight: 800;
}

.dashboard-footer p {
    margin-top: 3px;
}

.dashboard-footer span {
    display: block;

    margin-top: 5px;
}


/* =========================================================
   16. BOTTOM NAVIGATION
========================================================= */

.bottom-navigation {
    height: var(--bottom-nav-height);

    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 900;

    display: grid;

    grid-template-columns:
        1fr
        1fr
        1.15fr
        1fr
        1fr;

    align-items: center;

    padding:
        7px
        8px
        calc(7px + env(safe-area-inset-bottom));

    background:
        rgba(255, 255, 255, 0.94);

    border-top: 1px solid rgba(20, 30, 50, 0.07);

    box-shadow:
        0 -8px 28px rgba(20, 35, 60, 0.08);

    backdrop-filter: blur(16px);
}

.bottom-nav-item {
    height: 52px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;

    background: transparent;

    color: #8a93a1;

    font-size: 9px;
    font-weight: 600;

    border-radius: 14px;

    transition:
        color var(--transition),
        background var(--transition);
}

.bottom-nav-item i {
    font-size: 16px;
}

.bottom-nav-item.active {
    color: var(--primary);
    background: #eef4ff;

    font-weight: 750;
}

.bottom-nav-item.active i {
    color: var(--primary);
    transform: translateY(-1px);
}

.bottom-nav-create {
    height: 62px;

    margin-top: -18px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 3px;

    background: transparent;

    color: var(--primary);

    font-size: 9px;
    font-weight: 700;
}

.bottom-nav-create span {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 17px;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            #356dc5,
            #1f4e96
        );

    box-shadow:
        0 8px 18px rgba(36, 87, 166, 0.28);

    font-size: 18px;

    border: 4px solid var(--background);
}

.bottom-nav-create:active span {
    transform: scale(0.93);
}


/* =========================================================
   17. TABLET
========================================================= */

@media (min-width: 600px) {

    .dashboard-main {
        padding:
            30px
            28px
            40px;
    }

    .welcome-section {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .header-create-btn {
        width: auto;

        padding: 0 20px;
    }

    .stats-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .quick-actions-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .bottom-navigation {
        display: none;
    }

    .dashboard-main {
        padding-bottom: 40px;
    }
}


/* =========================================================
   18. DESKTOP
========================================================= */

@media (min-width: 900px) {

    :root {
        --header-height: 76px;
    }

    .dashboard-header {
        padding: 0 32px;
    }

    .menu-btn {
        display: none;
    }

    .dashboard-main {
        max-width: 1180px;

        margin: 0 auto;

        padding:
            38px
            28px
            60px;
    }

    .welcome-section {
        margin-bottom: 28px;
    }

    .welcome-section h1 {
        font-size: 34px;
    }

    .welcome-section p {
        font-size: 14px;
    }

    .quick-navigation {
        gap: 14px;
    }

    .quick-nav-item {
        min-width: 90px;
    }

    .quick-nav-icon {
        width: 54px;
        height: 54px;
    }

    .stats-grid {
        gap: 14px;
    }

    .stat-card {
        min-height: 160px;

        padding: 18px;
    }

    .stat-value {
        font-size: 28px;
    }

    .create-course-card {
        display: flex;
        align-items: center;
        justify-content: space-between;

        padding: 24px 26px;
    }

    .primary-action-btn {
        width: auto;

        min-width: 170px;

        padding: 0 20px;

        margin-top: 0;
    }

    .courses-list {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .course-empty-state {
        grid-column: 1 / -1;
    }

    .quick-actions-grid {
        gap: 14px;
    }

    .quick-action-card {
        min-height: 185px;
    }
}


/* =========================================================
   19. LARGE DESKTOP
========================================================= */

@media (min-width: 1200px) {

    .dashboard-main {
        padding-left: 40px;
        padding-right: 40px;
    }

    .stats-grid {
        gap: 18px;
    }

    .dashboard-section {
        margin-bottom: 38px;
    }
}


/* =========================================================
   20. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================================================
   END — FUTUREVERSE INSTRUCTOR DASHBOARD CSS
========================================================= */
























/* =========================================================
   FUTUREVERSE INSTRUCTOR DASHBOARD
   ADDITIONAL PAGES
   Courses / Students / Profile
========================================================= */


/* =========================================================
   21. PAGE VISIBILITY
========================================================= */

.dashboard-page[hidden] {
    display: none !important;
}


/* =========================================================
   22. COMMON PAGE HEADER
========================================================= */

.dashboard-page {
    width: 100%;
    margin-bottom: 30px;
}

.page-header {
    display: flex;
    flex-direction: column;
    gap: 16px;

    margin-bottom: 20px;
}

.page-header h1 {
    margin-top: 3px;

    font-size: 26px;
    line-height: 1.2;

    letter-spacing: -0.6px;
}

.page-header p {
    margin-top: 7px;

    color: var(--text-secondary);

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   23. COURSE SEARCH
========================================================= */

.course-search-box,
.student-search-box {
    width: 100%;
    height: 50px;

    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 14px;
    padding: 0 15px;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: var(--surface);

    box-shadow: var(--shadow-sm);

    color: var(--text-muted);
}

.course-search-box i,
.student-search-box i {
    font-size: 13px;
}

.course-search-box input,
.student-search-box input {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--text);

    font-size: 12px;
}

.course-search-box input::placeholder,
.student-search-box input::placeholder {
    color: var(--text-muted);
}


/* =========================================================
   24. COURSE FILTERS
========================================================= */

.course-filters {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 18px;

    overflow-x: auto;

    scrollbar-width: none;
}

.course-filters::-webkit-scrollbar {
    display: none;
}

.course-filter {
    min-height: 34px;

    padding: 0 14px;

    flex-shrink: 0;

    border-radius: 20px;

    background: #ffffff;

    border: 1px solid var(--border);

    color: var(--text-secondary);

    font-size: 10px;
    font-weight: 650;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition);
}

.course-filter.active {
    color: #ffffff;

    background: var(--primary);

    border-color: var(--primary);

    box-shadow:
        0 5px 14px rgba(36, 87, 166, 0.18);
}


/* =========================================================
   25. DASHBOARD COURSE LIST
========================================================= */

.dashboard-course-list {
    display: flex;
    flex-direction: column;

    gap: 12px;
}


/* Dynamic course card */

.dashboard-course-item {
    width: 100%;

    display: flex;

    min-height: 130px;

    overflow: hidden;

    border-radius: 20px;

    background: var(--surface);

    border: 1px solid rgba(0, 0, 0, 0.035);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.dashboard-course-item:active {
    transform: scale(0.99);
}


/* Course thumbnail */

.dashboard-course-thumbnail {
    width: 92px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #dce8ff,
            #eef4ff
        );
}

.dashboard-course-thumbnail i {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: rgba(255, 255, 255, 0.72);

    color: var(--primary);

    font-size: 17px;
}


/* Course information */

.dashboard-course-content {
    min-width: 0;

    flex: 1;

    padding: 14px;
}

.dashboard-course-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;
}

.dashboard-course-status {
    display: inline-flex;
    align-items: center;

    min-height: 22px;

    padding: 0 8px;

    border-radius: 20px;

    font-size: 9px;
    font-weight: 700;
}

.dashboard-course-status.published {
    color: #247b55;
    background: var(--success-light);
}

.dashboard-course-status.draft {
    color: #986600;
    background: var(--warning-light);
}

.dashboard-course-menu {
    color: var(--text-muted);

    font-size: 13px;
}

.dashboard-course-content h3 {
    margin-top: 8px;

    font-size: 14px;
    font-weight: 750;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-course-content p {
    margin-top: 4px;

    color: var(--text-secondary);

    font-size: 10px;
    line-height: 1.45;

    display: -webkit-box;
    -webkit-box-orient: vertical;
   

    overflow: hidden;
}

.dashboard-course-meta {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 9px;

    color: var(--text-muted);

    font-size: 9px;
}

.dashboard-course-meta span {
    display: inline-flex;
    align-items: center;

    gap: 4px;
}


/* =========================================================
   26. STUDENT OVERVIEW
========================================================= */

.student-overview-card {
    min-height: 108px;

    display: flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 14px;
    padding: 18px;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            #edf4ff,
            #ffffff
        );

    border: 1px solid #dce7fa;

    box-shadow: var(--shadow-sm);
}

.student-overview-icon {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    color: var(--primary);

    background: #dce9ff;

    font-size: 19px;
}

.student-overview-card span {
    display: block;

    color: var(--text-secondary);

    font-size: 11px;
}

.student-overview-card strong {
    display: block;

    margin-top: 3px;

    font-size: 26px;
    font-weight: 800;

    color: var(--text);
}


/* =========================================================
   27. STUDENT LIST
========================================================= */

.student-list {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.student-card {
    min-height: 82px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 13px 14px;

    border-radius: 18px;

    background: var(--surface);

    border: 1px solid rgba(0, 0, 0, 0.035);

    box-shadow: var(--shadow-sm);
}

.student-avatar {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    color: var(--primary);

    background: var(--primary-light);

    font-size: 14px;
    font-weight: 800;
}

.student-info {
    min-width: 0;

    flex: 1;
}

.student-info strong {
    display: block;

    overflow: hidden;

    color: var(--text);

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.student-info span {
    display: block;

    margin-top: 3px;

    overflow: hidden;

    color: var(--text-secondary);

    font-size: 9px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.student-progress {
    width: 58px;

    flex-shrink: 0;

    text-align: right;
}

.student-progress strong {
    display: block;

    color: var(--primary);

    font-size: 10px;
}

.student-progress-bar {
    width: 58px;
    height: 5px;

    margin-top: 5px;

    overflow: hidden;

    border-radius: 10px;

    background: #e9edf3;
}

.student-progress-bar span {
    display: block;

    height: 100%;

    width: 70%;

    border-radius: inherit;

    background: var(--primary);
}


/* =========================================================
   28. PROFILE HERO
========================================================= */

.profile-hero-card {
    min-height: 150px;

    display: flex;
    align-items: center;

    gap: 15px;

    margin-bottom: 16px;
    padding: 20px;

    border-radius: 24px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #2457a6 0%,
            #356cc4 55%,
            #1d4b91 100%
        );

    box-shadow:
        0 12px 30px rgba(36, 87, 166, 0.20);

    position: relative;

    overflow: hidden;
}

.profile-hero-card::after {
    content: "";

    width: 150px;
    height: 150px;

    position: absolute;

    right: -55px;
    top: -60px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);
}

.profile-large-avatar {
    width: 70px;
    height: 70px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 22px;

    color: var(--primary);

    background: #ffffff;

    font-size: 25px;
    font-weight: 800;

    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.12);

    position: relative;
    z-index: 1;
}

.profile-hero-info {
    min-width: 0;

    position: relative;
    z-index: 1;
}

.profile-hero-info h2 {
    overflow: hidden;

    font-size: 19px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.profile-hero-info p {
    margin-top: 4px;

    overflow: hidden;

    color: rgba(255, 255, 255, 0.72);

    font-size: 10px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.profile-role {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    margin-top: 9px;
    padding: 5px 9px;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.13);

    font-size: 9px;
    font-weight: 650;
}

.profile-role i {
    font-size: 8px;
}


/* =========================================================
   29. PROFILE OPTIONS
========================================================= */

.profile-options {
    display: flex;
    flex-direction: column;

    gap: 9px;
}

.profile-option {
    width: 100%;
    min-height: 70px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 11px 13px;

    text-align: left;

    border-radius: 18px;

    background: var(--surface);

    border: 1px solid var(--border);

    color: var(--text);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        background var(--transition);
}

.profile-option:active {
    transform: scale(0.99);
}

.profile-option-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    color: var(--primary);

    background: var(--primary-light);

    font-size: 14px;
}

.profile-option-content {
    min-width: 0;

    flex: 1;
}

.profile-option-content strong {
    display: block;

    font-size: 12px;
    font-weight: 700;
}

.profile-option-content small {
    display: block;

    margin-top: 3px;

    overflow: hidden;

    color: var(--text-secondary);

    font-size: 9px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.profile-option > i:last-child {
    color: #aeb5c0;

    font-size: 10px;
}

.profile-option.logout-option {
    color: var(--danger);

    border-color: #f3dddd;
}

.profile-option.logout-option
.profile-option-icon {
    color: var(--danger);

    background: var(--danger-light);
}


/* =========================================================
   30. EMPTY STATES
========================================================= */

.dashboard-empty-state {
    padding: 30px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    border: 1px dashed #d8dee8;

    border-radius: 22px;

    background: rgba(255, 255, 255, 0.58);
}

.dashboard-empty-state .empty-icon {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    color: var(--primary);

    background: var(--primary-light);

    font-size: 18px;
}

.dashboard-empty-state h2 {
    margin-top: 13px;

    font-size: 15px;
}

.dashboard-empty-state p {
    max-width: 280px;

    margin-top: 6px;

    color: var(--text-secondary);

    font-size: 10px;
    line-height: 1.5;
}

.dashboard-empty-state
.primary-action-btn {
    width: auto;

    min-height: 42px;

    margin-top: 16px;

    padding: 0 16px;

    color: #ffffff;

    background: var(--primary);

    box-shadow: none;
}


/* =========================================================
   31. PAGE DESKTOP / TABLET
========================================================= */

@media (min-width: 600px) {

    .page-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .page-header
    .primary-action-btn {
        width: auto;

        margin-top: 0;

        padding: 0 18px;
    }

    .dashboard-course-list {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .student-list {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .profile-options {
        max-width: 760px;
    }
}


/* =========================================================
   32. DESKTOP
========================================================= */

@media (min-width: 900px) {

    .dashboard-page {
        margin-bottom: 40px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .page-header p {
        font-size: 13px;
    }

    .dashboard-course-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 16px;
    }

    .student-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 14px;
    }

    .student-overview-card {
        max-width: 420px;
    }

    .profile-hero-card {
        max-width: 760px;
    }
}


/* =========================================================
   END — ADDITIONAL DASHBOARD PAGE CSS
========================================================= */

















/* =========================================================
   33. NOTIFICATIONS
========================================================= */

.notification-summary-card {
    min-height: 105px;

    display: flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 16px;
    padding: 18px;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            #edf4ff,
            #ffffff
        );

    border: 1px solid #dce7fa;

    box-shadow: var(--shadow-sm);
}

.notification-summary-icon {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    color: var(--primary);

    background: #dce9ff;

    font-size: 19px;
}

.notification-summary-card span {
    display: block;

    color: var(--text-secondary);

    font-size: 11px;
}

.notification-summary-card strong {
    display: block;

    margin-top: 3px;

    color: var(--text);

    font-size: 25px;
    font-weight: 800;
}


/* Notification list */

.notification-list {
    display: flex;
    flex-direction: column;

    gap: 10px;

    margin-bottom: 14px;
}

.notification-item {
    width: 100%;

    display: flex;
    align-items: flex-start;

    gap: 12px;

    padding: 14px;

    border-radius: 18px;

    background: var(--surface);

    border: 1px solid var(--border);

    box-shadow: var(--shadow-sm);
}

.notification-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    color: var(--primary);

    background: var(--primary-light);

    font-size: 14px;
}

.notification-content {
    min-width: 0;

    flex: 1;
}

.notification-content strong {
    display: block;

    color: var(--text);

    font-size: 12px;
    font-weight: 700;
}

.notification-content p {
    margin-top: 4px;

    color: var(--text-secondary);

    font-size: 10px;
    line-height: 1.45;
}

.notification-content small {
    display: block;

    margin-top: 7px;

    color: var(--text-muted);

    font-size: 9px;
}

.notification-unread {
    position: relative;

    background: #f8fbff;

    border-color: #dce8fb;
}

.notification-unread::before {
    content: "";

    width: 6px;
    height: 6px;

    position: absolute;

    top: 14px;
    right: 14px;

    border-radius: 50%;

    background: var(--primary);
}


/* =========================================================
   34. MESSAGES
========================================================= */

.message-search-box {
    width: 100%;
    height: 50px;

    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 16px;
    padding: 0 15px;

    border: 1px solid var(--border);

    border-radius: 15px;

    background: var(--surface);

    box-shadow: var(--shadow-sm);

    color: var(--text-muted);
}

.message-search-box i {
    font-size: 13px;
}

.message-search-box input {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--text);

    font-size: 12px;
}

.message-search-box input::placeholder {
    color: var(--text-muted);
}


/* Conversation list */

.conversation-list {
    display: flex;
    flex-direction: column;

    gap: 9px;

    margin-bottom: 14px;
}

.conversation-item {
    width: 100%;

    min-height: 76px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 12px 14px;

    text-align: left;

    border-radius: 18px;

    background: var(--surface);

    border: 1px solid var(--border);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        background var(--transition);
}

.conversation-item:active {
    transform: scale(0.99);
}


/* Student avatar */

.conversation-avatar {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    color: var(--primary);

    background: var(--primary-light);

    font-size: 13px;
    font-weight: 800;
}


/* Conversation information */

.conversation-content {
    min-width: 0;

    flex: 1;
}

.conversation-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;
}

.conversation-name {
    overflow: hidden;

    color: var(--text);

    font-size: 12px;
    font-weight: 750;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.conversation-time {
    flex-shrink: 0;

    color: var(--text-muted);

    font-size: 8px;
}

.conversation-preview {
    margin-top: 4px;

    overflow: hidden;

    color: var(--text-secondary);

    font-size: 9px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.conversation-course {
    display: inline-flex;
    align-items: center;

    gap: 4px;

    margin-top: 5px;

    color: var(--primary);

    font-size: 8px;
    font-weight: 650;
}


/* Unread conversation */

.conversation-item.unread {
    background: #f8fbff;

    border-color: #dce8fb;
}

.conversation-item.unread
.conversation-name {
    color: var(--primary);
}

.conversation-item.unread
.conversation-preview {
    color: var(--text);
    font-weight: 600;
}


/* Unread badge */

.message-unread-badge {
    min-width: 20px;
    height: 20px;

    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 5px;

    border-radius: 20px;

    color: #ffffff;

    background: var(--primary);

    font-size: 8px;
    font-weight: 750;
}


/* =========================================================
   35. NOTIFICATION / MESSAGE EMPTY STATE
========================================================= */

#notificationsEmptyState,
#messagesEmptyState {
    margin-top: 8px;
}


/* =========================================================
   36. TABLET
========================================================= */

@media (min-width: 600px) {

    .notification-list {
        max-width: 820px;
    }

    .conversation-list {
        max-width: 820px;
    }

    .notification-summary-card {
        max-width: 420px;
    }
}


/* =========================================================
   37. DESKTOP
========================================================= */

@media (min-width: 900px) {

    .notification-item,
    .conversation-item {
        padding: 16px;
    }

    .notification-summary-card {
        min-height: 115px;
    }

    .notification-summary-icon {
        width: 56px;
        height: 56px;
    }
}


/* =========================================================
   END — NOTIFICATIONS & MESSAGES
========================================================= */

/* =========================================================
   38. FINAL LAYOUT POLISH
   Structural-safe overrides for separated dashboard pages
========================================================= */

/* The additional pages now sit OUTSIDE #dashboardMain.
   Give them the same container geometry as the dashboard home. */
.dashboard-page {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;

    padding:
        22px
        16px
        calc(var(--bottom-nav-height) + 26px);

    margin-bottom: 0;
}

/* Prevent page content from touching the viewport edges. */
.dashboard-page > * {
    min-width: 0;
}

/* Keep page headings aligned with cards. */
.dashboard-page .page-header {
    width: 100%;
    margin-bottom: 22px;
}

/* All page cards use the same clean outer rhythm. */
.dashboard-page .student-overview-card,
.dashboard-page .notification-summary-card,
.dashboard-page .profile-hero-card,
.dashboard-page .profile-options,
.dashboard-page .course-search-box,
.dashboard-page .student-search-box,
.dashboard-page .message-search-box,
.dashboard-page .course-filters,
.dashboard-page .dashboard-course-list,
.dashboard-page .student-list,
.dashboard-page .notification-list,
.dashboard-page .conversation-list,
.dashboard-page .dashboard-empty-state {
    width: 100%;
}

/* Profile page */
.profile-hero-card {
    min-height: 170px;
    padding: 24px;
    border-radius: 26px;
}

.profile-large-avatar {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    font-size: 28px;
}

.profile-hero-info h2 {
    font-size: 22px;
}

.profile-hero-info p {
    font-size: 11px;
}

.profile-role {
    min-height: 28px;
    padding: 6px 10px;
    font-size: 10px;
}

.profile-options {
    gap: 12px;
}

.profile-option {
    min-height: 78px;
    padding: 13px 16px;
    border-radius: 20px;
}

.profile-option-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 15px;
}

.profile-option-content strong {
    font-size: 13px;
}

.profile-option-content small {
    font-size: 10px;
}

/* Course / student / notification / message cards */
.dashboard-course-item,
.student-card,
.notification-item,
.conversation-item {
    border-radius: 20px;
}

/* Empty states should breathe on mobile. */
.dashboard-empty-state {
    min-height: 260px;
    justify-content: center;
    padding: 38px 20px;
}

/* ---------------------------------------------------------
   MOBILE BOTTOM NAV — stable, non-jumping geometry
--------------------------------------------------------- */

.bottom-navigation {
    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    height: calc(
        var(--bottom-nav-height) +
        env(safe-area-inset-bottom)
    );

    padding:
        6px
        8px
        env(safe-area-inset-bottom);
}

.bottom-nav-item,
.bottom-nav-create {
    width: 100%;
    height: 52px;

    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    transform: none;
}

.bottom-nav-item {
    gap: 4px;
}

.bottom-nav-item i {
    transition:
        color var(--transition),
        transform var(--transition);
}

/* Selected navigation item */
.bottom-nav-item.active {
    color: var(--primary);
    background: var(--primary-light);
}

.bottom-nav-item.active i {
    color: var(--primary);
    transform: none;
}

/* Create is a normal fixed-size nav item.
   No negative margin, so it cannot jump. */
.bottom-nav-create {
    gap: 3px;
    color: #7f8998;
    background: transparent;
}

.bottom-nav-create span {
    width: 44px;
    height: 44px;

    border: 0;
    border-radius: 14px;

    background: var(--primary);
    color: #ffffff;

    box-shadow:
        0 6px 16px rgba(36, 87, 166, 0.22);

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.bottom-nav-create small {
    color: inherit;
    font-size: 9px;
    font-weight: 700;
}

/* If JS marks Create active, it gets the same blue selection treatment. */
.bottom-nav-create.active {
    color: var(--primary);
    background: var(--primary-light);
}

.bottom-nav-create.active span {
    background: var(--primary-dark);
    box-shadow:
        0 7px 18px rgba(36, 87, 166, 0.25);
}

.bottom-nav-create:active span {
    transform: scale(0.96);
}

/* ---------------------------------------------------------
   TABLET
--------------------------------------------------------- */

@media (min-width: 600px) {

    .dashboard-page {
        padding:
            30px
            28px
            40px;
    }

    .bottom-navigation {
        display: none;
    }

    .dashboard-empty-state {
        min-height: 280px;
    }
}

/* ---------------------------------------------------------
   DESKTOP
--------------------------------------------------------- */

@media (min-width: 900px) {

    .dashboard-page {
        padding:
            38px
            28px
            60px;
    }

    .profile-hero-card {
        max-width: 760px;
        min-height: 190px;
        padding: 28px;
    }

    .profile-large-avatar {
        width: 92px;
        height: 92px;
        border-radius: 27px;
        font-size: 30px;
    }

    .profile-hero-info h2 {
        font-size: 24px;
    }

    .profile-options {
        max-width: 760px;
    }

    .profile-option {
        min-height: 82px;
        padding: 14px 18px;
    }

    .dashboard-empty-state {
        min-height: 300px;
    }
}

/* ---------------------------------------------------------
   LARGE DESKTOP
--------------------------------------------------------- */

@media (min-width: 1200px) {

    .dashboard-page {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* =========================================================
   END — FINAL LAYOUT POLISH
========================================================= */
/* =========================================================
   MOBILE SIDEBAR — FINAL HEIGHT & SCROLL FIX
========================================================= */

.mobile-menu {
    height: 100dvh;
    max-height: 100dvh;

    overflow-y: auto;
    overflow-x: hidden;

    -webkit-overflow-scrolling: touch;

    overscroll-behavior: contain;
}

/* Header ऊपर stable रहे */
.menu-header {
    flex-shrink: 0;
}

/* Profile card भी compress न हो */
.menu-profile {
    flex-shrink: 0;
}

/* Navigation अपनी natural height ले */
.menu-navigation {
    flex-shrink: 0;
}

/* Bottom section दबे नहीं */
.menu-bottom {
    flex-shrink: 0;
    margin-top: 12px;
    padding-bottom: 24px;
}

/* Scrollbar को clean रखो */
.mobile-menu {
    scrollbar-width: thin;
}

.mobile-menu::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: rgba(36, 87, 166, 0.22);
    border-radius: 10px;
}



/* =========================================================
   SIDEBAR — NO ACTIVE BLUE BACKGROUND
   Blue active state is only for Bottom Navigation
========================================================= */

/* Every sidebar item keeps the same background */
.mobile-menu .menu-item,
.mobile-menu .menu-item.active {
    background: transparent;
    color: var(--text-secondary);
}

/* Keep every sidebar icon identical */
.mobile-menu .menu-item .menu-icon,
.mobile-menu .menu-item.active .menu-icon {
    background: #f2f4f8;
    color: var(--text-secondary);
}

/* Create Course icon should also be identical */
.mobile-menu .menu-item .menu-icon.create-icon,
.mobile-menu .menu-item.active .menu-icon.create-icon {
    background: #f2f4f8;
    color: var(--text-secondary);
}

/* Hover — subtle only, not blue selection */
.mobile-menu .menu-item:hover {
    background: #f7f9fc;
    color: var(--text);
}

.mobile-menu .menu-item:hover .menu-icon {
    background: #eef2f7;
}

/* Active sidebar item should NOT stay blue after click */
.mobile-menu .menu-item.active {
    background: transparent;
    color: var(--text-secondary);
}

.mobile-menu .menu-item.active .menu-icon {
    background: #f2f4f8;
    color: var(--text-secondary);
}

/* =========================================================
   BOTTOM NAV — BLUE ACTIVE STATE
========================================================= */

.bottom-navigation .bottom-nav-item.active {
    color: var(--primary);
    background: var(--primary-light);
}

.bottom-navigation .bottom-nav-item.active i {
    color: var(--primary);
}

/* =========================================================
   MOBILE HEADER — COMPACT LEFT ALIGNMENT
========================================================= */

@media (max-width: 599px) {

    .dashboard-header {
        padding-left: 8px;
        padding-right: 12px;
    }

    .header-left {
        gap: 2px;
        margin-left: 0;
    }

    .menu-btn {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    .brand-area {
        gap: 6px;
        flex-shrink: 0;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
    }

    .brand-text {
        white-space: nowrap;
    }

}

/* =========================================================
   PAGE BACK BUTTON
========================================================= */

.page-back-row {
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.page-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    min-height: 38px;
    padding: 8px 12px;

    border: 0;
    border-radius: 10px;

    background: transparent;
    color: var(--text-secondary);

    font-size: 13px;
    font-weight: 650;

    cursor: pointer;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.page-back-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.page-back-btn:active {
    transform: scale(0.97);
}

.page-back-btn i {
    font-size: 13px;
}


/* Mobile */
@media (max-width: 599px) {

    .page-back-row {
        margin-bottom: 10px;
    }

    .page-back-btn {
        min-height: 36px;
        padding: 7px 10px;

        font-size: 12px;
    }

}



.page-back-btn {
    position: relative;
    top: -25px;
    left: -25px;
}












@media (max-width: 599px) {
    .page-back-btn {
        display: none;
    }
}




/* =========================================================
   COURSE — CONTINUE EDITING BUTTON
========================================================= */

.course-continue-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    width: fit-content;
    min-width: 150px;
    min-height: 42px;

    margin-top: 14px;
    padding: 10px 16px;

    border: 0;
    border-radius: 11px;

    background: var(--primary);
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;

    cursor: pointer;

    box-shadow:
        0 5px 14px rgba(36, 87, 166, 0.18);

    transition:
        background 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}


/* Icon */

.course-continue-btn i {
    font-size: 11px;

    transition:
        transform 180ms ease;
}


/* Desktop Hover */

.course-continue-btn:hover {
    background: var(--primary-dark);

    box-shadow:
        0 8px 20px rgba(36, 87, 166, 0.24);

    transform: translateY(-1px);
}


/* Arrow Animation */

.course-continue-btn:hover i {
    transform: translateX(3px);
}


/* Click */

.course-continue-btn:active {
    transform: scale(0.97);

    box-shadow:
        0 4px 10px rgba(36, 87, 166, 0.16);
}


/* Keyboard Focus */

.course-continue-btn:focus-visible {
    outline: 3px solid rgba(36, 87, 166, 0.22);
    outline-offset: 3px;
}


/* =========================================================
   TABLET
========================================================= */

@media (min-width: 600px) and (max-width: 1023px) {

    .course-continue-btn {
        min-width: 150px;
        min-height: 42px;

        padding: 10px 16px;

        font-size: 13px;
        border-radius: 11px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 599px) {

    .course-continue-btn {
        width: 100%;
        min-width: 0;

        min-height: 44px;

        margin-top: 13px;
        padding: 11px 15px;

        border-radius: 11px;

        font-size: 13px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 379px) {

    .course-continue-btn {
        min-height: 42px;

        padding: 10px 13px;

        font-size: 12px;
    }

}



/* =========================================================
   PREMIUM — VIEW DETAILS BUTTON
   Home + My Courses
========================================================= */


/* =========================================================
   COURSE INFO LAYOUT
========================================================= */

.course-info {

    display: flex;
    flex-direction: column;

}


/* =========================================================
   PREMIUM VIEW DETAILS BUTTON
========================================================= */

.course-view-details-btn {

    /* Right side alignment */
    align-self: flex-end;

    margin-top: 18px;
    margin-left: auto;
    margin-right: 0;

    /* Button layout */
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    width: fit-content;

    min-height: 42px;

    padding:
        10px 17px;


    /* Border */

    border:
        1px solid
        rgba(38, 91, 170, 0.14);

    border-radius:
        13px;


    /* Premium background */

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f4f8ff 100%
        );


    /* Text */

    color:
        #2459a6;

    font-family:
        inherit;

    font-size:
        14px;

    font-weight:
        700;

    letter-spacing:
        0.1px;


    /* Interaction */

    cursor:
        pointer;

    -webkit-tap-highlight-color:
        transparent;


    /* Shadow */

    box-shadow:
        0 5px 14px
        rgba(25, 70, 135, 0.08),

        inset 0 1px 0
        rgba(255, 255, 255, 0.9);


    /* Animation */

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease;

}


/* =========================================================
   ARROW
========================================================= */

.course-view-details-btn i {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    font-size:
        13px;

    transition:
        transform 0.22s ease;

}


/* =========================================================
   HOVER
========================================================= */

.course-view-details-btn:hover {

    background:
        linear-gradient(
            135deg,
            #2d66b5 0%,
            #24559e 100%
        );

    color:
        #ffffff;

    border-color:
        rgba(36, 85, 158, 0.5);

    box-shadow:
        0 8px 20px
        rgba(36, 85, 158, 0.20);

    transform:
        translateY(-2px);

}


/* =========================================================
   ARROW ANIMATION
========================================================= */

.course-view-details-btn:hover i {

    transform:
        translateX(4px);

}


/* =========================================================
   ACTIVE / PRESS
========================================================= */

.course-view-details-btn:active {

    transform:
        translateY(0)
        scale(0.97);

    box-shadow:
        0 4px 10px
        rgba(36, 85, 158, 0.14);

}


/* =========================================================
   KEYBOARD ACCESSIBILITY
========================================================= */

.course-view-details-btn:focus-visible {

    outline:
        3px solid
        rgba(45, 102, 181, 0.20);

    outline-offset:
        3px;

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .course-view-details-btn {

        align-self:
            flex-end;

        margin-top:
            16px;

        margin-left:
            auto;

        margin-right:
            0;

        min-height:
            40px;

        padding:
            9px 15px;

        border-radius:
            12px;

        font-size:
            13.5px;

        gap:
            8px;

    }


    .course-view-details-btn i {

        font-size:
            12.5px;

    }

}

/* =========================================================
   LOGOUT CONFIRMATION MODAL
========================================================= */

body.logout-modal-open {
    overflow: hidden;
}

.logout-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.logout-modal[hidden] {
    display: none;
}

.logout-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 16, 31, 0.58);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    opacity: 0;
    transition: opacity 220ms ease;
}

.logout-modal-card {
    width: min(100%, 430px);
    position: relative;
    z-index: 1;
    padding: 30px 24px 24px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 80px rgba(7, 20, 45, 0.28);
    text-align: center;
    transform: translateY(14px) scale(0.97);
    opacity: 0;
    transition:
        transform 220ms cubic-bezier(.22, .8, .25, 1),
        opacity 220ms ease;
}

.logout-modal.active .logout-modal-backdrop {
    opacity: 1;
}

.logout-modal.active .logout-modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.logout-modal-close {
    width: 34px;
    height: 34px;
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary);
    background: #f3f5f8;
    transition:
        background var(--transition),
        transform var(--transition);
}

.logout-modal-close:hover {
    background: #e9edf3;
}

.logout-modal-close:active {
    transform: scale(0.94);
}

.logout-modal-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: var(--danger);
    background: var(--danger-light);
    font-size: 20px;
}

.logout-modal-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--primary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.logout-modal-card h2 {
    margin: 0;
    color: var(--text);
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -0.35px;
}

.logout-modal-card p {
    max-width: 350px;
    margin: 10px auto 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
}

.logout-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

.logout-cancel-btn,
.logout-confirm-btn {
    min-height: 46px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 750;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.logout-cancel-btn {
    color: var(--text);
    background: #f2f4f7;
    border: 1px solid #e5e8ed;
}

.logout-cancel-btn:hover {
    background: #e9edf2;
}

.logout-confirm-btn {
    color: #ffffff;
    background: var(--danger);
    box-shadow: 0 8px 20px rgba(217, 74, 74, 0.22);
}

.logout-confirm-btn:hover {
    box-shadow: 0 11px 26px rgba(217, 74, 74, 0.28);
}

.logout-cancel-btn:active,
.logout-confirm-btn:active {
    transform: scale(0.98);
}

@media (max-width: 480px) {
    .logout-modal {
        padding: 16px;
    }

    .logout-modal-card {
        padding: 28px 18px 18px;
        border-radius: 23px;
    }

    .logout-modal-card h2 {
        font-size: 19px;
    }

    .logout-modal-actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logout-modal-backdrop,
    .logout-modal-card {
        transition: none;
    }
}
