﻿/* ══════════════════════════════════════════════════════
    Registration,Login & ADMIN MASTER – reuses lms-shell variables + overrides
    admin sidebar with a darker/richer tone
 ══════════════════════════════════════════════════════ */

:root {
    --lms-sidebar-w: 248px;
    --lms-sidebar-collapsed-w: 60px;
    --lms-topbar-h: 58px;
    --lms-sidebar-bg: var(--color-primary);
    --lms-sidebar-text: rgba(255,255,255,0.80);
    --lms-sidebar-text-active: #fff;
    --lms-sidebar-item-hover: rgba(255,255,255,0.08);
    --lms-sidebar-item-active: var(--color-accent);
    --lms-topbar-bg: var(--color-surface);
    --lms-topbar-border: var(--color-border);
    --lms-content-bg: var(--color-bg);
}

html, body {
    height: 100%;
}

/* ── Registration Page Styles ─────────────────────────────── */
.reg-section {
    padding: 60px 0 80px;
}

.reg-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 820px;
    margin: 0 auto;
}

/* User-type tab switcher */
.reg-tabs {
    display: flex;
    background: var(--color-primary);
}

.reg-tab-btn {
    flex: 1;
    padding: 16px 10px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.65);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .reg-tab-btn:hover {
        background: rgba(255,255,255,0.10);
        color: #fff;
    }

    .reg-tab-btn.active {
        background: var(--color-accent);
        color: #fff;
    }

    .reg-tab-btn i {
        font-size: 16px;
    }

/* Form body */
.reg-form-body {
    padding: 36px 40px 40px;
}

.reg-form-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.reg-form-subtitle {
    font-size: 14px;
    color: var(--color-muted);
    margin-bottom: 28px;
}

.reg-divider {
    height: 3px;
    width: 48px;
    background: var(--color-accent);
    border-radius: 2px;
    margin-bottom: 28px;
}

/* Section label inside form */
.reg-section-label {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 8px;
    margin: 28px 0 18px;
}

    .reg-section-label:first-of-type {
        margin-top: 0;
    }

/* Form fields */
.reg-form-body .form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 5px;
    display: block;
}

    .reg-form-body .form-label i {
        color: var(--color-secondary);
        margin-right: 5px;
        width: 14px;
    }

.reg-form-body .form-control {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-size: 14px;
    color: var(--color-text);
    background: var(--color-surface);
    width: 100%;
    transition: border-color var(--transition), box-shadow var(--transition);
}

    .reg-form-body .form-control:focus {
        border-color: var(--color-secondary);
        box-shadow: 0 0 0 3px rgba(46,109,164,0.12);
        outline: none;
    }

.reg-form-body .form-required {
    color: var(--color-danger);
    margin-left: 2px;
}

.reg-form-body .field-error {
    display: block;
    font-size: 12px;
    color: var(--color-danger);
    margin-top: 4px;
}

/* Captcha row */
.captcha-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.captcha-question {
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    letter-spacing: 2px;
    white-space: nowrap;
    user-select: none;
}

.captcha-equals {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-muted);
}

.captcha-input {
    width: 90px !important;
    text-align: center;
    font-size: 16px !important;
    font-weight: 700;
}

/* Programmes checkboxes */
.prog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 12px;
}

    .prog-list label {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        font-size: 13px;
        color: var(--color-text);
        cursor: pointer;
        line-height: 1.4;
    }

    .prog-list input[type=checkbox] {
        margin-top: 2px;
        flex-shrink: 0;
        accent-color: var(--color-secondary);
    }

.prog-checklist {
    width: 100%;
}

    .prog-checklist tr td {
        width: 33.333%;
        padding: 5px 10px;
        vertical-align: top;
    }
/* Alert / status messages */
.reg-alert {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 20px;
}

.reg-alert-success {
    background: rgba(39,174,96,0.10);
    border: 1px solid rgba(39,174,96,0.35);
    color: #1a7a3f;
}

.reg-alert-danger {
    background: rgba(231,76,60,0.08);
    border: 1px solid rgba(231,76,60,0.30);
    color: #c0392b;
}

/* Submit button */
.btn-reg-submit {
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 36px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .btn-reg-submit:hover {
        background: #c9621a;
        transform: translateY(-1px);
    }

    .btn-reg-submit:active {
        transform: translateY(0);
    }

/* Login link */
.reg-login-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--color-muted);
}

    .reg-login-link a {
        font-weight: 500;
        text-transform: uppercase;
        font-family: var(--font-heading);
        color: var(--color-accent);
    }

        .reg-login-link a:hover {
            color: var(--color-accent);
        }

/* Responsive */
@media (max-width: 600px) {
    .reg-form-body {
        padding: 24px 18px 28px;
    }

    .reg-tab-btn {
        font-size: 12px;
        padding: 14px 6px;
    }

    .captcha-wrap {
        gap: 8px;
    }
}

/* ── Login Page Styles ───────────────────────────────────── */
.login-section {
    padding: 60px 0 80px;
}

.login-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
}

.login-card-header {
    background: var(--color-primary);
    padding: 28px 36px;
    text-align: center;
}

    .login-card-header h2 {
        color: #fff;
        font-family: var(--font-heading);
        font-size: 22px;
        font-weight: 600;
        margin: 0 0 4px 0;
    }

    .login-card-header p {
        color: rgba(255,255,255,0.70);
        font-size: 13px;
        margin: 0;
    }

.login-card-body {
    padding: 36px;
}

    /* Form fields */
    .login-card-body .form-label {
        font-size: 14px;
        font-weight: 500;
        color: var(--color-text);
        display: block;
        margin-bottom: 5px;
    }

        .login-card-body .form-label i {
            color: var(--color-secondary);
            margin-right: 5px;
            width: 14px;
        }

    .login-card-body .form-control {
        border: 1px solid var(--color-border);
        border-radius: var(--radius-sm);
        padding: 10px 12px;
        font-size: 14px;
        color: var(--color-text);
        background: var(--color-surface);
        width: 100%;
        transition: border-color var(--transition), box-shadow var(--transition);
    }

        .login-card-body .form-control:focus {
            border-color: var(--color-secondary);
            box-shadow: 0 0 0 3px rgba(46,109,164,0.12);
            outline: none;
        }

    .login-card-body .form-required {
        color: var(--color-danger);
        margin-left: 2px;
    }

    .login-card-body .field-error {
        display: block;
        font-size: 12px;
        color: var(--color-danger);
        margin-top: 4px;
    }

/* Password input wrapper */
.pwd-input-wrap {
    position: relative;
}

    .pwd-input-wrap .form-control {
        padding-right: 42px;
    }

.pwd-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-muted);
    cursor: pointer;
    padding: 0;
    font-size: 15px;
    line-height: 1;
    transition: color var(--transition);
}

    .pwd-toggle:hover {
        color: var(--color-secondary);
    }

/* Alert */
.login-alert {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 20px;
}

.login-alert-danger {
    background: rgba(231,76,60,0.08);
    border: 1px solid rgba(231,76,60,0.30);
    color: #c0392b;
}

.login-alert-warning {
    background: rgba(243,156,18,0.08);
    border: 1px solid rgba(243,156,18,0.35);
    color: #7d5e00;
}

.lms-alert {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 20px;
    background: rgba(36, 194, 120,0.08);
    border: 1px solid rgba(32, 172, 107,0.35);
    color: #1c975d;
}

.lms-info-banner {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 20px;
    background: rgba(13, 202, 240, 0.1);
    border: 1px solid rgba(9, 143, 170);
}
/* Submit button */
.btn-login-submit {
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background var(--transition), transform var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .btn-login-submit:hover {
        background: #c9621a;
        transform: translateY(-1px);
    }

    .btn-login-submit:active {
        transform: translateY(0);
    }

/* Divider */
.login-divider {
    text-align: center;
    font-size: 12px;
    color: var(--color-muted);
    margin: 20px 0;
    position: relative;
}

    .login-divider::before,
    .login-divider::after {
        content: '';
        position: absolute;
        top: 50%;
        width: 42%;
        height: 1px;
        background: var(--color-border);
    }

    .login-divider::before {
        left: 0;
    }

    .login-divider::after {
        right: 0;
    }

/* Register link */
.login-register-link {
    text-align: center;
    font-size: 14px;
    color: var(--color-muted);
}

    .login-register-link a {
        font-weight: 500;
        text-transform: uppercase;
        font-family: var(--font-heading);
        color: var(--color-accent);
    }

        .login-register-link a:hover {
            color: var(--color-accent);
        }

/* Forgot password link */
.login-forgot {
    text-align: right;
    margin-top: 5px;
}

    .login-forgot a {
        font-size: 12px;
        color: var(--color-muted);
    }

        .login-forgot a:hover {
            color: var(--color-accent);
        }

/* Security note */
.login-security-note {
    text-align: center;
    font-size: 12px;
    color: var(--color-muted);
    margin-top: 18px;
}

@media (max-width: 576px) {
    .login-card-body {
        padding: 24px 18px 28px;
    }

    .login-card-header {
        padding: 22px 18px;
    }
}

/* ── Admin Shell ─────────────────────────────────────────── */
.dash-width {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    flex: 0 0 20%;
    max-width: 20%;
}

.admin-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ── Sidebar ───────────────────────────────────────── */
.admin-sidebar {
    width: var(--lms-sidebar-w);
    min-width: var(--lms-sidebar-w);
    background: var(--lms-sidebar-bg);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
    transition: width 0.25s ease, min-width 0.25s ease;
    z-index: 200;
}

    .admin-sidebar.collapsed {
        width: var(--lms-sidebar-collapsed-w);
        min-width: var(--lms-sidebar-collapsed-w);
    }

/* Brand bar */
.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    height: var(--lms-topbar-h);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
    overflow: hidden;
    text-decoration: none;
}

    .admin-brand img {
        height: 30px;
        width: 30px;
        object-fit: contain;
        flex-shrink: 0;
        border-radius: 4px;
    }

.admin-brand-text {
    overflow: hidden;
    white-space: nowrap;
}

.admin-brand-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    display: block;
    line-height: 1.2;
}

.admin-brand-sub {
    font-size: 10px;
    color: rgba(255,255,255,0.45);
    display: block;
}

.admin-sidebar.collapsed .admin-brand-text {
    display: none;
}

/* Admin badge strip */
.admin-role-strip {
    background: #E87722;
    padding: 5px 14px;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
    overflow: hidden;
}

.admin-sidebar.collapsed .admin-role-strip {
    justify-content: center;
}

    .admin-sidebar.collapsed .admin-role-strip span {
        display: none;
    }

/* Collapse btn */
.admin-collapse-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.50);
    padding: 8px 14px;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color var(--transition);
}

    .admin-collapse-btn:hover {
        color: #fff;
    }

.admin-sidebar.collapsed .admin-collapse-btn {
    justify-content: center;
}

/* User mini panel */
.admin-user-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    flex-shrink: 0;
}

.admin-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #E87722;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

    .admin-user-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

.admin-user-info {
    overflow: hidden;
    white-space: nowrap;
}

.admin-user-name {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-email {
    font-size: 10px;
    color: rgba(255,255,255,0.45);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-sidebar.collapsed .admin-user-info {
    display: none;
}

/* Nav */
.admin-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 0;
}

    .admin-nav::-webkit-scrollbar {
        width: 3px;
    }

    .admin-nav::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.12);
        border-radius: 2px;
    }

.admin-nav-section {
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: rgba(255,255,255,0.30);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 10px 16px 3px;
    white-space: nowrap;
}

.admin-sidebar.collapsed .admin-nav-section {
    opacity: 0;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px 9px 16px;
    color: var(--lms-sidebar-text);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
    overflow: hidden;
}

    .admin-nav-item:hover {
        background: var(--lms-sidebar-item-hover);
        color: var(--lms-sidebar-text-active);
    }

    .admin-nav-item.active {
        background: var(--lms-sidebar-item-active);
        color: #fff;
    }

    .admin-nav-item .nav-icon {
        font-size: 14px;
        width: 18px;
        text-align: center;
        flex-shrink: 0;
    }

    .admin-nav-item .nav-label {
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .admin-nav-item .nav-count {
        font-size: 10px;
        background: rgba(232,119,34,0.85);
        color: #fff;
        border-radius: 10px;
        padding: 1px 6px;
        font-weight: 600;
        flex-shrink: 0;
    }

.admin-sidebar.collapsed .nav-label,
.admin-sidebar.collapsed .nav-count {
    display: none;
}

.admin-sidebar.collapsed .admin-nav-item {
    justify-content: center;
    padding: 10px 0;
}

/* Sub-menu */
.admin-sub-menu {
    display: none;
    background: rgba(0,0,0,0.18);
}

    .admin-sub-menu.open {
        display: block;
    }

    .admin-sub-menu .admin-nav-item {
        font-size: 12px;
        padding-left: 44px;
    }

.admin-sidebar.collapsed .admin-sub-menu {
    display: none !important;
}

/* Sidebar footer */
.admin-sidebar-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 8px 0;
    flex-shrink: 0;
}

/* ── Top bar ───────────────────────────────────────── */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.admin-topbar {
    height: var(--lms-topbar-h);
    min-height: var(--lms-topbar-h);
    background: var(--lms-topbar-bg);
    border-bottom: 1px solid var(--lms-topbar-border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 12px;
    flex-shrink: 0;
    z-index: 100;
}

    /* Admin topbar accent line */
    .admin-topbar::after {
        content: '';
        position: absolute;
        top: var(--lms-topbar-h);
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, #E87722 0%, #1A3E6B 100%);
    }

.admin-topbar {
    position: relative;
}

.admin-topbar-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-topbar-btn {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-muted);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    text-decoration: none;
}

    .admin-topbar-btn:hover {
        background: var(--color-bg);
        border-color: var(--color-secondary);
        color: var(--color-secondary);
    }

/* ── lms shell ───────────────────────────────────────── */
.lms-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: var(--lms-content-bg);
}

/* ══════════════════════════════════════════════════════
           SIDEBAR
══════════════════════════════════════════════════════ */
.lms-sidebar {
    width: var(--lms-sidebar-w);
    min-width: var(--lms-sidebar-w);
    background: var(--lms-sidebar-bg);
    display: flex;
    flex-direction: column;
    transition: width 0.25s ease, min-width 0.25s ease;
    overflow: hidden;
    flex-shrink: 0;
    z-index: 200;
}

    .lms-sidebar.collapsed {
        width: var(--lms-sidebar-collapsed-w);
        min-width: var(--lms-sidebar-collapsed-w);
    }

/* Brand */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    height: var(--lms-topbar-h);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    flex-shrink: 0;
    text-decoration: none;
    overflow: hidden;
}

    .sidebar-brand img {
        height: 32px;
        width: 32px;
        object-fit: contain;
        flex-shrink: 0;
        border-radius: 4px;
    }

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar-brand-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.sidebar-brand-sub {
    font-size: 10px;
    color: rgba(255,255,255,0.55);
    line-height: 1.3;
}

.lms-sidebar.collapsed .sidebar-brand-text {
    display: none;
}

.sidebar-brand-name:hover, .sidebar-brand-sub:hover {
    text-decoration: none !important;
}
/* Collapse toggle button */
.sidebar-collapse-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.60);
    padding: 10px 14px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: color var(--transition);
}

    .sidebar-collapse-btn:hover {
        color: #fff;
    }

.lms-sidebar.collapsed .sidebar-collapse-btn {
    justify-content: center;
}

/* User info panel */
.sidebar-user {
    padding: 16px 14px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

    .sidebar-user-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

.sidebar-user-info {
    overflow: hidden;
    white-space: nowrap;
}

.sidebar-user-name {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    display: block;
}

.lms-sidebar.collapsed .sidebar-user-info {
    display: none;
}
/* Role badge pill */
.role-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    font-family: var(--font-heading);
    padding: 2px 7px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 3px;
}

.role-badge-admin {
    background: #E74C3C;
    color: #fff;
}

.role-badge-trainer {
    background: #2E6DA4;
    color: #fff;
}

.role-badge-learner {
    background: #27AE60;
    color: #fff;
}

.role-badge-institution {
    background: #8E44AD;
    color: #fff;
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
}

    .sidebar-nav::-webkit-scrollbar {
        width: 4px;
    }

    .sidebar-nav::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.15);
        border-radius: 2px;
    }

/* Section label */
.sidebar-nav-section {
    font-size: 11px;
    font-weight: 500;
    font-family: var(--font-heading);
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 12px 18px 4px;
    white-space: nowrap;
    overflow: hidden;
}

.lms-sidebar.collapsed .sidebar-nav-section {
    opacity: 0;
    padding: 12px 0 4px;
}

/* Nav items */
.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 14px 10px 18px;
    color: var(--lms-sidebar-text);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

    .sidebar-nav-item:hover {
        background: var(--lms-sidebar-item-hover);
        color: var(--lms-sidebar-text-active);
    }

    .sidebar-nav-item.active {
        background: var(--lms-sidebar-item-active);
        color: #fff;
    }

    .sidebar-nav-item .nav-icon {
        font-size: 15px;
        width: 18px;
        text-align: center;
        flex-shrink: 0;
    }

    .sidebar-nav-item .nav-label {
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sidebar-nav-item .nav-badge {
        font-size: 10px;
        background: var(--color-accent);
        color: #fff;
        border-radius: 10px;
        padding: 1px 6px;
        font-weight: 600;
        flex-shrink: 0;
    }

    .sidebar-nav-item .nav-chevron {
        font-size: 10px;
        color: rgba(255,255,255,0.40);
        transition: transform 0.2s;
        flex-shrink: 0;
    }

    .sidebar-nav-item.sub-open .nav-chevron {
        transform: rotate(90deg);
    }

.lms-sidebar.collapsed .nav-label,
.lms-sidebar.collapsed .nav-badge,
.lms-sidebar.collapsed .nav-chevron {
    display: none;
}

/* Tooltip on collapsed sidebar */
.lms-sidebar.collapsed .sidebar-nav-item {
    justify-content: center;
    padding: 10px 0;
}

/* Sub-menu */
.sidebar-sub-menu {
    display: none;
    background: rgba(0,0,0,0.15);
}

    .sidebar-sub-menu.open {
        display: block;
    }

    .sidebar-sub-menu .sidebar-nav-item {
        font-size: 12px;
        padding-left: 46px;
    }

.lms-sidebar.collapsed .sidebar-sub-menu {
    display: none !important;
}

/* Sidebar footer */
.sidebar-footer {
    border-top: 1px solid rgba(255,255,255,0.10);
    padding: 10px 0;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
           MAIN COLUMN (topbar + content)
           ══════════════════════════════════════════════════════ */
.lms-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* ── Top bar ─────────────────────────────────────────── */
.lms-topbar {
    height: var(--lms-topbar-h);
    min-height: var(--lms-topbar-h);
    background: var(--lms-topbar-bg);
    border-bottom: 1px solid var(--lms-topbar-border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 12px;
    flex-shrink: 0;
    z-index: 100;
}

/* Page title area */
.topbar-page-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Breadcrumb */
.topbar-breadcrumb {
    font-size: 12px;
    color: var(--color-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

    .topbar-breadcrumb a {
        color: var(--color-muted);
        text-decoration: none;
    }

        .topbar-breadcrumb a:hover {
            color: var(--color-accent);
        }

    .topbar-breadcrumb .sep {
        color: var(--color-border);
    }

/* Topbar actions */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.topbar-icon-btn {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-muted);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    position: relative;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    text-decoration: none;
}

    .topbar-icon-btn:hover {
        background: var(--color-bg);
        border-color: var(--color-secondary);
        color: var(--color-secondary);
    }

/* Notification badge */
.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-danger);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    font-family: var(--font-heading);
    border: 1px solid var(--lms-topbar-bg);
}

/* ── Notification dropdown (topbar bell) ─────────────────────── */
.notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    background: var(--lms-card-bg);
    border: 1px solid var(--lms-border);
    border-radius: var(--lms-radius);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 1050;
    overflow: hidden;
}

    .notif-dropdown.open {
        display: block;
    }

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--lms-border);
    font-weight: 600;
    font-size: 14px;
}

    .notif-dropdown-header a {
        font-size: 12px;
        font-weight: 400;
        color: var(--lms-primary);
        text-decoration: none;
    }

/* Bell badge */
.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: var(--lms-danger);
    color: #fff;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
    pointer-events: none;
}

/* Dropdown notification items */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--lms-text);
    border-bottom: 1px solid var(--lms-border);
    transition: background .15s;
    cursor: pointer;
}

    .notif-item:hover {
        background: var(--lms-hover-bg);
    }

    .notif-item:last-child {
        border-bottom: none;
    }

.notif-item-unread {
    background: rgba(74,144,226,.06);
}

    .notif-item-unread .notif-subject {
        font-weight: 600;
    }

.notif-item .notif-icon {
    font-size: 16px;
    color: var(--lms-primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.notif-item .notif-content {
    flex: 1;
    min-width: 0;
}

.notif-item .notif-subject {
    display: block;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-item .notif-time {
    display: block;
    font-size: 11px;
    color: var(--lms-muted);
    margin-top: 2px;
}

.notif-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--lms-muted);
    font-size: 13px;
}

/* ── Full notifications list page ───────────────────────────── */
.notif-list {
    border-top: 1px solid var(--lms-border);
}

.notif-list-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--lms-border);
    transition: background .15s;
}

    .notif-list-item:hover {
        background: var(--lms-hover-bg);
    }

.notif-list-item-unread {
    background: rgba(74,144,226,.05);
}

    .notif-list-item-unread .notif-list-subject {
        font-weight: 700;
    }

.notif-list-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--lms-primary-subtle, rgba(74,144,226,.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.notif-list-body {
    flex: 1;
    min-width: 0;
}

.notif-list-subject {
    font-size: 14px;
    color: var(--lms-text);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.notif-list-preview {
    font-size: 12px;
    color: var(--lms-muted);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 480px;
}

.notif-list-meta {
    font-size: 11px;
    color: var(--lms-muted);
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.notif-list-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

/* Colour-coded notification icons */
.notif-icon-primary {
    color: var(--lms-primary) !important;
}

.notif-icon-success {
    color: var(--lms-success, #28a745) !important;
}

.notif-icon-warning {
    color: var(--lms-warning, #ffc107) !important;
}

.notif-icon-danger {
    color: var(--lms-danger, #dc3545) !important;
}

.notif-icon-info {
    color: var(--lms-info, #17a2b8) !important;
}

/* Status badges on notification items */
.notif-new-badge {
    font-size: 10px;
    font-weight: 700;
    background: var(--lms-primary);
    color: #fff;
    border-radius: 4px;
    padding: 1px 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.notif-failed-badge {
    font-size: 10px;
    font-weight: 600;
    background: rgba(220,53,69,.1);
    color: var(--lms-danger, #dc3545);
    border: 1px solid rgba(220,53,69,.25);
    border-radius: 4px;
    padding: 1px 6px;
}

.notif-error-text {
    color: var(--lms-danger, #dc3545);
    font-size: 11px;
}

.notif-list-type-badge {
    background: var(--lms-secondary-subtle, rgba(108,117,125,.1));
    color: var(--lms-muted);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ── Tab navigation ─────────────────────────────────────────── */
.lms-tab-nav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--lms-border);
    margin-bottom: 20px;
    overflow-x: auto;
}

.lms-tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--lms-muted);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .15s, border-color .15s;
    border-radius: var(--lms-radius) var(--lms-radius) 0 0;
}

    .lms-tab-btn:hover {
        color: var(--lms-primary);
    }

    .lms-tab-btn.lms-tab-active {
        color: var(--lms-primary);
        border-bottom-color: var(--lms-primary);
        font-weight: 700;
    }

/* ── Q&A message thread reply box ───────────────────────────── */
.qa-thread-history {
    border: 1px solid var(--lms-border);
    border-radius: var(--lms-radius);
    padding: 12px;
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 12px;
    background: var(--lms-body-bg, #f9f9f9);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qa-thread-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.qa-msg-learner {
    align-self: flex-start;
    background: var(--lms-primary-subtle, rgba(74,144,226,.1));
    border-bottom-left-radius: 3px;
}

.qa-msg-trainer {
    align-self: flex-end;
    background: rgba(40,167,69,.1);
    border-bottom-right-radius: 3px;
}

.qa-msg-author {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--lms-muted);
    margin-bottom: 3px;
}

.qa-msg-time {
    display: block;
    font-size: 10px;
    color: var(--lms-muted);
    margin-top: 4px;
    text-align: right;
}

.qa-msg-body {
    color: var(--lms-text);
}

/* ── XS button variant ───────────────────────────────────────── */
.lms-btn-xs {
    padding: 3px 10px !important;
    font-size: 11px !important;
    min-width: unset !important;
}

/* ── Responsive adjustments ─────────────────────────────────── */
@media (max-width: 767px) {
    .notif-dropdown {
        width: 300px;
        right: -50px;
    }

    .notif-list-item {
        flex-wrap: wrap;
    }

    .notif-list-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .notif-list-preview {
        max-width: 100%;
    }
}


/* Profile dropdown */
.profile-btn-wrap {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 5px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: none;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}

    .profile-btn:hover {
        background: var(--color-bg);
        border-color: var(--color-secondary);
    }

.profile-btn-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

    .profile-btn-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

.profile-btn-name {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-sub-text);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-btn-chevron {
    font-size: 10px;
    color: var(--color-muted);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 200px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
}

    .profile-dropdown.open {
        display: block;
    }

.profile-dropdown-header {
    padding: 14px 14px;
    border-bottom: 1px solid var(--color-border);
}

.profile-dropdown-name {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    display: block;
}

.profile-dropdown-email, .profile-dropdown-lastlogin {
    font-size: 10.5px;
    color: var(--color-muted);
    display: block;
    margin-top: 2px;
    word-break: break-all;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--color-text);
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: background var(--transition), color var(--transition);
}

    .profile-dropdown-item:hover {
        background: var(--color-bg);
        color: var(--color-secondary);
    }

    .profile-dropdown-item i {
        width: 14px;
        text-align: center;
        color: var(--color-muted);
    }

    .profile-dropdown-item:hover i {
        color: var(--color-secondary);
    }

.profile-dropdown-divider {
    height: 1px;
    background: var(--color-border);
    margin: 4px 0;
}

.profile-dropdown-item.text-danger {
    color: var(--color-danger);
}

    .profile-dropdown-item.text-danger i {
        color: var(--color-danger);
    }

    .profile-dropdown-item.text-danger:hover {
        background: rgba(231,76,60,0.06);
        color: var(--color-danger);
    }


/* ══════════════════════════════════════════════════════
   CONTENT AREA  (.lms-content)
   The <main> element rendered by admin.master.
   flex:1 so it fills the remaining vertical space after
   the topbar; overflow-y:auto provides the scroll region.
══════════════════════════════════════════════════════ */
.lms-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    background: var(--lms-content-bg);
    /* Establish a block-formatting context so child rows
       do not bleed outside and floats are contained. */
    display: block;
}

    .lms-content::-webkit-scrollbar {
        width: 6px;
    }

    .lms-content::-webkit-scrollbar-thumb {
        background: var(--color-border);
        border-radius: 3px;
    }

/* ── Page header ─────────────────────────────────────── */
/* Used in every dashboard: admin, learner, trainer, institution */
.lms-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.lms-page-header-left {
    flex: 1;
    min-width: 0;
}

.lms-page-header-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lms-page-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 4px 0;
    line-height: 1.2;
}

    .lms-page-title i {
        color: var(--color-accent);
        margin-right: 6px;
    }

.lms-page-subtitle {
    font-size: 14px;
    color: var(--color-muted);
    margin: 0;
}

.lms-label-hint {
    font-size: 12px;
    color: var(--color-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.lms-hint-file {
    font-size: 14px;
}

    .lms-hint-file:hover {
        color: var(--color-secondary) !important;
        text-decoration: underline;
    }

.lms-section-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 4px 0;
    line-height: 1.2;
}

    .lms-section-title i {
        color: var(--color-accent);
        margin-right: 6px;
    }

/* ── Stat cards row ──────────────────────────────────── */
.lms-stat-row {
    margin-bottom: 24px;
}

    .lms-stat-row [class*="col-"] {
        margin-bottom: 16px;
    }

.lms-stat-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 20px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
    position: relative;
    overflow: hidden;
}

    .lms-stat-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

    /* Left accent stripe — colour set by modifier class */
    .lms-stat-card::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        border-radius: var(--radius-md) 0 0 var(--radius-md);
    }

.lms-stat-primary::before {
    background: var(--color-primary);
}

.lms-stat-success::before {
    background: var(--color-success);
}

.lms-stat-warning::before {
    background: var(--color-accent);
}

.lms-stat-info::before {
    background: var(--color-secondary);
}

.lms-stat-icon {
    font-size: 28px;
    line-height: 1;
}

.lms-stat-primary .lms-stat-icon {
    color: var(--color-primary);
}

.lms-stat-success .lms-stat-icon {
    color: var(--color-success);
}

.lms-stat-warning .lms-stat-icon {
    color: var(--color-accent);
}

.lms-stat-info .lms-stat-icon {
    color: var(--color-secondary);
}

.lms-stat-body {
    flex: 1;
}

.lms-stat-value {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: 4px;
}

.lms-stat-label {
    font-size: 13px;
    color: var(--color-muted);
    font-family: var(--font-heading);
    font-weight: 500;
}

.lms-stat-link {
    font-size: 12px;
    color: var(--color-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    border-top: 1px solid var(--color-border);
    padding-top: 10px;
    margin-top: 4px;
    transition: color var(--transition);
}

    .lms-stat-link:hover {
        color: var(--color-accent);
    }

/* ── Content cards ───────────────────────────────────── */
.lms-card, .lms-info-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
}

.lms-info-box {
    padding: 15px;
}

    .lms-info-box i {
        color: var( --color-accent);
        padding: 0px 5px 0px 0px;
    }

.lms-form-card {
    padding: 15px 15px 5px;
}

    .lms-form-card input {
        margin-bottom: 10px;
    }

    .lms-form-card textarea {
        resize: vertical;
        min-height: 120px;
        margin-bottom: 10px;
    }

.lms-info-panel {
    padding: 15px;
}

.lms-card-badge {
    padding: 15px;
}

.lms-search-bar {
    padding: 10px;
}

    .lms-search-bar p {
        margin: 0px;
    }

.lms-card-no-border {
    border: none;
    box-shadow: none;
}

.lms-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}

.lms-card-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .lms-card-title i {
        color: var(--color-accent);
        font-size: 14px;
    }

.lms-card-body {
    padding: 20px;
}

.margin-top {
    margin-top: 15px;
}
/* ── inputs ──────────────────────────────────── */
.lms-input {
    width: 100%;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 8px 18px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text);
    background: var(--color-surface);
    transition: border-color var(--transition);
    outline: none;
}

    .lms-input:focus {
        border-color: var(--color-secondary);
    }

.lms-input-readonly {
    background: var(--color-bg);
}

.lms-input-file {
    font-size: 12px;
}

.lms-label {
    font-size: 14px;
}

.lms-required {
    color: #DE0A26;
}

.small_img_01 {
    width: 100px;
    border-radius: 5px;
}
/* ── Button helpers ──────────────────────────────────── */
.lms-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

    .lms-btn:hover {
        transform: translateY(-1px);
    }

    .lms-btn:active {
        transform: translateY(0);
    }

.lms-btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.lms-btn-primary {
    background: var(--color-accent);
    color: #fff !important;
}

    .lms-btn-primary:hover {
        background: #c9621a;
        color: #fff !important;
    }

.lms-btn-secondary {
    background: var( --color-btn-secondary);
}

.lms-btn-outline {
    background: transparent;
    color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
    padding: 7px 18px;
}

    .lms-btn-outline:hover {
        background: var(--color-secondary);
        color: #fff !important;
    }

.lms-form-actions {
    margin-top: 15px;
}

    .lms-form-actions input {
        margin-right: 2px;
    }
/* ── Badge helpers ───────────────────────────────────── */
.lms-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-heading);
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.3px;
    text-transform: capitalize;
}

.lms-badge-info {
    background: rgba(46,109,164,0.12);
    color: var(--color-secondary);
}

.lms-badge-success {
    background: rgba(39,174,96,0.12);
    color: var(--color-success);
}

.lms-badge-warning {
    background: rgba(232,119,34,0.12);
    color: var(--color-accent);
}

.lms-badge-danger {
    background: rgba(231,76,60,0.12);
    color: var(--color-danger);
}

/* ── Data grid wrapper ───────────────────────────────── */
.lms-grid-scroll {
    overflow-x: auto;
    padding: 10px;
}

/* ASP.NET GridView reset + LMS skin */

.lms-grid {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

    /* Header */
    .lms-grid th,
    .lms-grid-header th {
        background: var(--grid-header-bg);
        color: var(--grid-header-text);
        font-family: var(--font-heading);
        font-weight: 500;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        padding: 5px 10px;
        text-align: left;
        border-bottom: 2px solid var(--color-border);
        white-space: nowrap;
    }

    /* Cells */
    .lms-grid td {
        padding: 5px 10px;
        border-bottom: 1px solid var(--color-border);
        vertical-align: middle;
        background: var(--color-surface);
        color: var(--color-text);
    }

    .lms-grid tr:last-child td {
        border-bottom: none;
    }

    /* Alternate rows */
    .lms-grid tr:nth-child(even) td {
        background: var(--grid-alt-row-bg);
    }

    /* Hover */
    .lms-grid tr:hover td {
        background: var(--grid-hover-bg);
    }

    /* Selected row */
    .lms-grid .lms-grid-selected-row td {
        background: var(--grid-selected-bg);
        color: var(--color-text);
        font-weight: 500;
    }

    /* Empty row */
    .lms-grid .lms-grid-empty td {
        background: var(--color-surface);
        color: var(--color-muted);
        text-align: center;
        font-weight: 500;
        padding: 24px;
        font-size: 13px;
    }

/* Pager */
.lms-grid-pager {
    background: var(--color-bg);
    text-align: center;
    padding: 10px;
    border-top: 1px solid var(--color-border);
}

    .lms-grid-pager a,
    .lms-grid-pager span {
        display: inline-block;
        margin: 0 4px;
        padding: 6px 10px;
        border-radius: var(--radius-sm);
        text-decoration: none;
        font-size: 12px;
        border: 1px solid var(--color-border);
        background: var(--color-surface);
    }

    .lms-grid-pager a {
        color: var(--color-primary);
    }

    .lms-grid-pager span {
        background: var(--color-primary);
        color: #fff;
        border-color: var(--color-primary);
    }

    .lms-grid-pager table tr td {
        padding: 0px;
    }
/* Compact version */
.lms-grid-sm th,
.lms-grid-sm td {
    padding: 8px 12px;
    font-size: 12px;
}

/* Labels inside grid */
.lms-grid th label,
.lms-grid td label {
    margin: 1px 0;
}

.lms-grid tr td a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* ── Quick-links panel ───────────────────────────────── */
.lms-quick-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px 12px;
}

/* Inline (horizontal wrapping) variant — used in trainer dashboard */
.lms-quick-links-inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 20px 20px;
}

.lms-quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

    .lms-quick-link i {
        font-size: 15px;
        color: var(--color-secondary);
        width: 18px;
        text-align: center;
        flex-shrink: 0;
        transition: color var(--transition);
    }

    .lms-quick-link:hover {
        background: rgba(46,109,164,0.07);
        color: var(--color-secondary);
    }

        .lms-quick-link:hover i {
            color: var(--color-accent);
        }

/* Inline variant item sizing */
.lms-quick-links-inline .lms-quick-link {
    flex: 1 1 calc(33% - 8px);
    min-width: 150px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    justify-content: flex-start;
}

/* ── Empty-state placeholder ─────────────────────────── */
/* Displayed inside cards when no data is available yet */
.lms-empty-state {
    padding: 32px 20px;
    text-align: center;
    color: var(--color-muted);
}

    .lms-empty-state i {
        font-size: 36px;
        display: block;
        margin-bottom: 12px;
        opacity: 0.4;
    }

    .lms-empty-state p {
        font-size: 14px;
        margin-bottom: 16px;
    }

/* ── Sidebar logout accent ───────────────────────────── */
.sidebar-logout:hover {
    background: rgba(231,76,60,0.12) !important;
    color: var(--color-danger) !important;
}

    .sidebar-logout:hover .nav-icon {
        color: var(--color-danger) !important;
    }

/* ── Mobile overlay sidebar ──────────────────────────── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 190;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 991px) {
    .lms-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 200;
    }

        .lms-sidebar.mobile-open {
            transform: translateX(0);
        }

    .sidebar-overlay.active {
        display: block;
    }

    .topbar-page-title {
        font-size: 14px;
    }

    .profile-btn-name {
        display: none;
    }

    .lms-content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .topbar-breadcrumb {
        display: none;
    }

    .lms-content {
        padding: 12px;
    }
}

/* Profile btn */
.admin-profile-wrap {
    position: relative;
}

.admin-profile-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 9px 4px 4px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: none;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}

    .admin-profile-btn:hover {
        background: var(--color-bg);
        border-color: var(--color-secondary);
    }

.admin-profile-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #E87722;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-profile-name {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text);
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-profile-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 190px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
}

    .admin-profile-dropdown.open {
        display: block;
    }

.admin-profile-dropdown-header {
    padding: 12px 14px;
    border-bottom: 1px solid var(--color-border);
}

.admin-profile-dropdown-name {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    display: block;
}

.admin-profile-dropdown-email {
    font-size: 10px;
    color: var(--color-muted);
    display: block;
    margin-top: 2px;
    word-break: break-all;
}

.admin-dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    font-size: 12px;
    color: var(--color-text);
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background var(--transition);
}

    .admin-dropdown-item:hover {
        background: var(--color-bg);
        color: var(--color-secondary);
    }

    .admin-dropdown-item i {
        width: 14px;
        text-align: center;
        color: var(--color-muted);
    }

    .admin-dropdown-item:hover i {
        color: var(--color-secondary);
    }

.admin-dropdown-divider {
    height: 1px;
    background: var(--color-border);
    margin: 3px 0;
}

.admin-dropdown-item.text-danger {
    color: var(--color-danger);
}

    .admin-dropdown-item.text-danger i {
        color: var(--color-danger);
    }

    .admin-dropdown-item.text-danger:hover {
        background: rgba(231,76,60,0.06);
    }

/* Content */
.admin-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: var(--lms-content-bg);
}

    .admin-content::-webkit-scrollbar {
        width: 5px;
    }

    .admin-content::-webkit-scrollbar-thumb {
        background: var(--color-border);
        border-radius: 3px;
    }

/* Mobile */
.admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 190;
}

@media (max-width: 991px) {
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 200;
    }

        .admin-sidebar.mobile-open {
            transform: translateX(0);
        }

    .admin-sidebar-overlay.active {
        display: block;
    }

    .admin-content {
        padding: 16px;
    }

    .admin-profile-name {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════
   AUTOCOMPLETE EXTENDER  —  LMS portal context
   AjaxControlToolkit renders the dropdown as a <div>
   with class  .lms-ac-list  (set via CssClass on the
   AutoCompleteExtender) wrapping a plain <ul>.
   Apply  CssClass="lms-ac-list"  on every
   AutoCompleteExtender inside admin.master pages.
══════════════════════════════════════════════════════ */

/* Wrapper div injected by the ACE */
.lms-ac-list {
    position: absolute;
    z-index: 3000;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 2px solid var(--color-secondary);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
    min-width: 220px;
    max-width: 420px;
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}

    .lms-ac-list::-webkit-scrollbar {
        width: 4px;
    }

    .lms-ac-list::-webkit-scrollbar-thumb {
        background: var(--color-border);
        border-radius: 2px;
    }

    /* The <ul> ACE builds inside the wrapper */
    .lms-ac-list ul {
        list-style: none;
        margin: 0;
        padding: 4px 0;
    }

    /* Every suggestion <li> */
    .lms-ac-list li {
        padding: 9px 14px;
        font-family: var(--font-body);
        font-size: 13px;
        color: var(--color-text);
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        border-bottom: 1px solid var(--color-border);
        transition: background var(--transition), color var(--transition);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        .lms-ac-list li:last-child {
            border-bottom: none;
        }

        /* Hover state */
        .lms-ac-list li:hover {
            background: rgba(46,109,164,0.07);
            color: var(--color-secondary);
        }

        /* ACE keyboard-selected item — ACE adds this class automatically */
        .lms-ac-list .ac_over,
        .lms-ac-list li.ac_over {
            background: var(--color-secondary);
            color: #fff;
        }

        /* Matched/highlighted text fragment inside the suggestion */
        .lms-ac-list .ac_match,
        .lms-ac-list li strong {
            font-weight: 700;
            color: var(--color-accent);
        }

        .lms-ac-list .ac_over .ac_match,
        .lms-ac-list li.ac_over strong {
            color: #fff;
        }

    /* "No results" row injected when list is empty */
    .lms-ac-list .lms-ac-empty {
        padding: 12px 14px;
        font-size: 12px;
        color: var(--color-muted);
        text-align: center;
        cursor: default;
        pointer-events: none;
    }

/* Dark-mode overrides */
body.dark-mode .lms-ac-list {
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

/* GridPagerStyle */
.GridPagerStyle table tr td {
    background-color: #1A3E6B;
    border: 1px solid #E87722;
    padding: 0px 5px;
    font-size: 12px;
    transition: all 0.5s;
}

    .GridPagerStyle table tr td:hover {
        background-color: #E87722;
        color: #fff;
    }

        .GridPagerStyle table tr td:hover a {
            color: #fff;
        }

    .GridPagerStyle table tr td span {
        color: #f0aa75;
    }

    .GridPagerStyle table tr td:hover span {
        color: #fff;
    }

    .GridPagerStyle table tr td a {
        color: #fff;
    }

/* ══════════════════════════════════════════════════════
   Audit Table
══════════════════════════════════════════════════════ */

.audit-table {
    width: 100%;
}

    .audit-table tr th, .audit-table tr td {
        padding: 5px;
    }

    .audit-table tr th {
        color: #DDDDDD;
        background-color: #4D4D4D;
        font-family: inter;
        font-size: 13px;
        font-weight: normal;
        height: 30px;
        border: 1px solid gray;
    }

    .audit-table tr td {
        border: 1px solid #336699;
        font-family: inter;
        font-size: 13px;
        color: #1e1e1e;
    }

    .audit-table tr:nth-child(odd) td {
        background-color: #ffffff;
    }

    .audit-table tr:nth-child(even) td {
        background-color: #FDEADA;
    }

.lms-captcha-text {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--color-accent);
}
/* ══════════════════════════════════════════════════════
   GRID PANEL
══════════════════════════════════════════════════════ */
.lms-grid-options-panel {
    display: inline-grid;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
    padding: 5px 5px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    width: auto;
    margin: 5px 0px 0px 0px;
    border-radius: 5px;
}

/* Left cluster — search + filters */
.lms-grid-options-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

/* Right cluster — action buttons */
.lms-grid-options-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ── Search input inside the panel ── */
.lms-grid-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

    .lms-grid-search-wrap .fa {
        position: absolute;
        left: 10px;
        color: var(--color-muted);
        font-size: 13px;
        pointer-events: none;
    }

.lms-grid-search {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 7px 10px 7px 30px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text);
    background: var(--color-bg);
    width: 210px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

    .lms-grid-search:focus {
        outline: none;
        border-color: var(--color-secondary);
        box-shadow: 0 0 0 3px rgba(46,109,164,0.10);
        background: var(--color-surface);
    }

    .lms-grid-search::placeholder {
        color: var(--color-muted);
        font-size: 12px;
    }

/* ── Filter <select> inside the panel ── */
.lms-grid-filter {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 7px 28px 7px 10px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text);
    background: var(--color-bg);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236B7280'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
    min-width: 130px;
}

    .lms-grid-filter:focus {
        outline: none;
        border-color: var(--color-secondary);
        box-shadow: 0 0 0 3px rgba(46,109,164,0.10);
    }

/* ── Records-per-page selector ── */
.lms-grid-per-page {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-muted);
    white-space: nowrap;
}

    .lms-grid-per-page select {
        border: 1px solid var(--color-border);
        border-radius: var(--radius-sm);
        padding: 5px 22px 5px 8px;
        font-size: 12px;
        color: var(--color-text);
        background: var(--color-bg);
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%236B7280'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 7px center;
        cursor: pointer;
        transition: border-color var(--transition);
    }

        .lms-grid-per-page select:focus {
            outline: none;
            border-color: var(--color-secondary);
        }

/* ── Divider between option clusters ── */
.lms-grid-options-divider {
    width: 1px;
    height: 22px;
    background: var(--color-border);
    flex-shrink: 0;
    margin: 0 2px;
}

/* ── Results count label ── */
.lms-grid-results-count {
    font-size: 12px;
    color: var(--color-muted);
    white-space: nowrap;
}

    .lms-grid-results-count strong {
        color: var(--color-text);
        font-weight: 600;
    }

/* ── Responsive collapse ── */
@media (max-width: 768px) {
    .lms-grid-options-panel {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px;
    }

    .lms-grid-options-left,
    .lms-grid-options-right {
        width: 100%;
        justify-content: flex-start;
    }

    .lms-grid-search {
        width: 100%;
        flex: 1;
    }

    .lms-grid-options-right {
        justify-content: flex-end;
    }
}

/* ══════════════════════════════════════════════════════
   AJAXCONTROLTOOLKIT — AutoCompleteExtender
══════════════════════════════════════════════════════ */

/* The dropdown container <div> */
.autocomplete_completionListElement {
    position: absolute;
    z-index: 3000;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 2px solid var(--color-secondary);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
    min-width: 200px;
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 0;
    margin: 0;
    list-style: none;
    font-family: var(--font-body);
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}

    .autocomplete_completionListElement::-webkit-scrollbar {
        width: 4px;
    }

    .autocomplete_completionListElement::-webkit-scrollbar-thumb {
        background: var(--color-border);
        border-radius: 2px;
    }

/* Every suggestion item — default (un-highlighted) state */
.autocomplete_listItem,
.autocomplete_highlightedListItem {
    padding: 9px 14px;
    font-size: 13px;
    color: var(--color-text);
    cursor: pointer;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background var(--transition), color var(--transition);
}

    .autocomplete_listItem:last-child,
    .autocomplete_highlightedListItem:last-child {
        border-bottom: none;
    }

    /* Plain item — hover */
    .autocomplete_listItem:hover {
        background: rgba(46,109,164,0.07);
        color: var(--color-secondary);
    }

/* Keyboard-selected item (ACE applies this on arrow-key navigation) */
.autocomplete_highlightedListItem {
    background: var(--color-secondary);
    color: #fff;
}

    /* Keyboard-selected item — mouse also over it */
    .autocomplete_highlightedListItem:hover {
        background: var(--color-primary);
        color: #fff;
    }

/*Gridview table*/
.gvControltxt tr th, .gvControltxt tr td {
    font-weight: 500;
    text-align: left;
}

.gvControltxt td label {
    margin: 1px 0px !important;
}
/*Gridview table*/
/*Media query*/
/* portrait tablets and small desktops*/
@media (max-width: 767px) {
    .lms-search-bar p {
        margin: 5px;
    }

    .dash-width {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.lms-detail-row {
    display: flex;
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-heading);
    font-size: 14px;
    align-items: center;
}

    .lms-detail-row:nth-child(even) {
        background-color: var(--color-bg);
    }

.lms-detail-label {
    flex: 0 0 250px;
    font-weight: 500;
}

.lms-detail-value {
    flex: 1;
    word-break: break-word;
}

/* ══════════════════════════════════════════════════════════════
   PHASE 4 — Dashboard & Analytics additions
   ══════════════════════════════════════════════════════════════ */

/* ── Mini progress bar (grid cells) ───────────────────────── */
.lms-progress-mini {
    height: 6px;
    background: var(--lms-border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 2px;
    min-width: 80px;
}

.lms-progress-mini-bar {
    height: 100%;
    background: var(--btn-success-bg);
    border-radius: 3px;
    transition: width .4s ease;
}

/* ── Full progress bar (credit usage) ─────────────────────── */
.lms-progress-bar-wrap {
    height: 8px;
    background: var(--lms-border);
    border-radius: 4px;
    overflow: hidden;
}

.lms-progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width .4s ease;
    min-width: 2px;
}

/* ── Learner programme card row (continue learning) ───────── */
.lms-prog-card-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 0;
}

.lms-prog-ring-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.lms-prog-ring {
    width: 52px;
    height: 52px;
}

.lms-prog-ring-bg {
    fill: none;
    stroke: var(--lms-border);
    stroke-width: 4;
}

.lms-prog-ring-fill {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dasharray .5s ease;
}

.lms-prog-ring-pct {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: 600;
    color: var(--lms-text);
    white-space: nowrap;
}

.lms-prog-card-info {
    flex: 1;
    min-width: 0;
}

.lms-prog-card-name {
    font-weight: 600;
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--lms-text);
}

.lms-prog-card-meta {
    margin-top: 3px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.lms-prog-card-action {
    flex-shrink: 0;
}

/* ── Q&A / analytics inline rows ─────────────────────────── */
.lms-analytics-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--lms-border);
    font-size: 13px;
}

    .lms-analytics-row:last-of-type {
        border-bottom: none;
    }

.lms-analytics-label {
    color: var(--lms-text);
}

.lms-analytics-value {
    font-weight: 600;
}

/* ── Badge pill (learner recent badges) ───────────────────── */
.lms-badge-pill {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 600;
    margin: 3px 4px 3px 0;
    cursor: default;
}

    .lms-badge-pill i {
        margin-right: 4px;
    }

/* ── Extra stat badge variants ────────────────────────────── */
.lms-badge-primary {
    background: rgba(74,144,226,.15);
    color: var(--color-primary);
    border: 1px solid rgba(74,144,226,.3);
}

/* ── Admin role-group section divider (Training / Learner / Institution blocks) ── */
.sidebar-nav-section-role {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: var(--color-accent);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    opacity: 1;
}

/* ── Role menu toggle (admin only) ─────────────────────── */
.sidebar-role-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

    .sidebar-role-toggle:hover {
        opacity: 0.85;
    }

.role-toggle-icon {
    font-size: 11px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

    .role-toggle-icon.open {
        transform: rotate(180deg);
    }

.role-menu-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

    .role-menu-body.open {
        max-height: 600px; /* large enough for any menu */
    }
