/* PGM2 Technologies Student LMS — Indigo theme */

:root {
    --lms-indigo: #4338ca;
    --lms-indigo-dark: #3730a3;
    --lms-indigo-light: #6366f1;
    --lms-indigo-soft: #eef2ff;
    --lms-surface: #ffffff;
    --lms-bg: #f5f7fb;
    --lms-border: #e5e7eb;
    --lms-text: #1e293b;
    --lms-muted: #64748b;
    --lms-radius: 14px;
    --lms-shadow: 0 4px 24px rgba(67, 56, 202, 0.08);
    --lms-sidebar-w: 260px;
}

*, *::before, *::after { box-sizing: border-box; }

.lms-body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background:
        radial-gradient(ellipse at top left, rgba(125, 211, 252, 0.22), transparent 45%),
        radial-gradient(ellipse at top right, rgba(134, 239, 172, 0.18), transparent 40%),
        linear-gradient(180deg, #f0f9ff 0%, #f8fafc 40%, #fff7ed 100%);
    color: var(--lms-text);
    min-height: 100vh;
    margin: 0;
}

/* Header */
.lms-header {
    background: linear-gradient(135deg, var(--lms-indigo-dark), var(--lms-indigo-light));
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 12px rgba(55, 48, 163, 0.25);
}

.lms-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    max-width: 100%;
}

.lms-sidebar-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.lms-sidebar-toggle:hover { background: rgba(255, 255, 255, 0.25); }

.lms-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.lms-brand__logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 4px;
}

.lms-brand__title {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
}

.lms-brand__sub {
    font-size: 0.7rem;
    opacity: 0.85;
}

.lms-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lms-notif-btn,
.lms-profile-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 10px;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}

.lms-notif-btn:hover,
.lms-profile-btn:hover { background: rgba(255, 255, 255, 0.22); }

.lms-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.lms-notif-menu { min-width: 240px; border-radius: var(--lms-radius); }

/* Shell layout */
.lms-shell {
    display: flex;
    min-height: calc(100vh - 130px);
}

.lms-sidebar {
    width: var(--lms-sidebar-w);
    background: var(--lms-surface);
    border-right: 1px solid var(--lms-border);
    padding: 1rem 0.75rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.lms-main {
    flex: 1;
    padding: 1.5rem;
    overflow-x: hidden;
}

.lms-footer {
    background: var(--lms-surface);
    border-top: 1px solid var(--lms-border);
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
}

.lms-footer a { color: var(--lms-indigo); text-decoration: none; }
.lms-footer a:hover { text-decoration: underline; }

/* Sidebar nav */
.lms-nav { display: flex; flex-direction: column; gap: 0.25rem; }

.lms-nav__link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    color: var(--lms-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.lms-nav__link i { width: 20px; text-align: center; color: var(--lms-indigo-light); }

.lms-nav__link:hover {
    background: var(--lms-indigo-soft);
    color: var(--lms-indigo);
}

.lms-nav__link.active {
    background: linear-gradient(135deg, var(--lms-indigo), var(--lms-indigo-light));
    color: #fff;
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.3);
}

.lms-nav__link.active i { color: #fff; }

/* Welcome banner */
.lms-welcome {
    background: linear-gradient(135deg, var(--lms-indigo-dark) 0%, var(--lms-indigo-light) 100%);
    color: #fff;
    border-radius: var(--lms-radius);
    padding: 1.75rem 2rem;
    box-shadow: var(--lms-shadow);
}

.lms-welcome__eyebrow {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 0.35rem;
}

.lms-welcome__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.lms-welcome__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    opacity: 0.88;
}

.lms-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.4);
}

.lms-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Stat cards */
.lms-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--lms-surface);
    border-radius: var(--lms-radius);
    padding: 1.25rem;
    box-shadow: var(--lms-shadow);
    border: 1px solid var(--lms-border);
}

.lms-stat-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.lms-stat--blue .lms-stat-card__icon { background: #dbeafe; color: #2563eb; }
.lms-stat--green .lms-stat-card__icon { background: #dcfce7; color: #16a34a; }
.lms-stat--orange .lms-stat-card__icon { background: #ffedd5; color: #ea580c; }
.lms-stat--purple .lms-stat-card__icon { background: var(--lms-indigo-soft); color: var(--lms-indigo); }

.lms-stat-card__value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: var(--lms-text);
}

.lms-stat-card__label {
    font-size: 0.8rem;
    color: var(--lms-muted);
    font-weight: 500;
}

/* Section titles */
.lms-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lms-text);
}

.lms-page-header { margin-bottom: 1rem; }

/* Countdown */
.lms-countdown {
    background: linear-gradient(90deg, #f59e0b, #f97316);
    color: #fff;
    border-radius: var(--lms-radius);
    padding: 1rem 1.5rem;
}

.lms-countdown__days {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

/* Course cards */
.lms-course-card {
    background: var(--lms-surface);
    border-radius: var(--lms-radius);
    border: 1px solid var(--lms-border);
    overflow: hidden;
    box-shadow: var(--lms-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.lms-course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(67, 56, 202, 0.12);
}

.lms-course-card__img {
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: var(--lms-indigo-soft);
}

.lms-course-card__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--lms-indigo-light);
}

.lms-course-card__body {
    padding: 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lms-course-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.lms-course-card__desc {
    font-size: 0.85rem;
    color: var(--lms-muted);
    margin: 0.5rem 0;
    flex: 1;
}

.lms-course-card__meta {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    color: var(--lms-muted);
}

.lms-course-card__meta li { margin-bottom: 0.25rem; }
.lms-course-card__meta i { width: 16px; color: var(--lms-indigo-light); }

.lms-course-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.lms-course-card .btn-primary {
    background: var(--lms-indigo);
    border-color: var(--lms-indigo);
}

.lms-course-card .btn-primary:hover {
    background: var(--lms-indigo-dark);
    border-color: var(--lms-indigo-dark);
}

.lms-course-card .btn-outline-primary {
    color: var(--lms-indigo);
    border-color: var(--lms-indigo);
}

.lms-course-card .btn-outline-primary:hover {
    background: var(--lms-indigo);
    border-color: var(--lms-indigo);
}

/* Detail / table cards */
.lms-detail-card,
.lms-table-card,
.lms-job-card,
.lms-forum-item,
.lms-notif-item,
.lms-cert-card,
.lms-news-item {
    background: var(--lms-surface);
    border-radius: var(--lms-radius);
    border: 1px solid var(--lms-border);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--lms-shadow);
}

.lms-detail-side {
    background: var(--lms-indigo-soft);
    border-radius: var(--lms-radius);
    padding: 1.25rem;
}

.lms-notif-item--unread {
    border-left: 4px solid var(--lms-indigo);
    background: var(--lms-indigo-soft);
}

.lms-cert-card {
    text-align: center;
    height: 100%;
}

.lms-cert-card__icon {
    font-size: 2.5rem;
    color: var(--lms-indigo);
    margin-bottom: 0.75rem;
}

.lms-job-card { height: 100%; }

.lms-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--lms-muted);
    background: var(--lms-surface);
    border-radius: var(--lms-radius);
    border: 1px dashed var(--lms-border);
}

/* Mini widgets */
.lms-news-mini,
.lms-job-mini,
.lms-forum-mini {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--lms-border);
}

/* Login — colourful modern */
.lms-login {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(56, 189, 248, 0.28), transparent 45%),
        radial-gradient(ellipse at 90% 10%, rgba(52, 211, 153, 0.22), transparent 40%),
        radial-gradient(ellipse at 70% 90%, rgba(251, 146, 60, 0.18), transparent 45%),
        linear-gradient(160deg, #ecfeff 0%, #f0fdf4 45%, #fff7ed 100%);
}

.lms-login__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.lms-login__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.55;
    animation: loginFloat 8s ease-in-out infinite;
}

.lms-login__orb--a {
    width: 220px; height: 220px;
    background: #38bdf8;
    top: 8%; left: 8%;
}

.lms-login__orb--b {
    width: 180px; height: 180px;
    background: #34d399;
    bottom: 12%; right: 18%;
    animation-delay: -2.5s;
}

.lms-login__orb--c {
    width: 140px; height: 140px;
    background: #fb923c;
    top: 55%; left: 42%;
    animation-delay: -4s;
}

@keyframes loginFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-18px) scale(1.05); }
}

.lms-login__visual {
    position: relative;
    background:
        linear-gradient(145deg, rgba(8, 145, 178, 0.92), rgba(5, 150, 105, 0.88) 55%, rgba(14, 116, 144, 0.9)),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2), transparent 50%);
    color: #fff;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.lms-login__visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 15%, rgba(253, 224, 71, 0.25), transparent 35%),
        radial-gradient(circle at 10% 85%, rgba(125, 211, 252, 0.3), transparent 40%);
    pointer-events: none;
}

.lms-login__visual-inner {
    position: relative;
    max-width: 480px;
    animation: dashFadeIn 0.7s ease both;
}

.lms-login__visual h1 {
    font-size: clamp(1.85rem, 2.6vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.lms-login__visual p {
    font-size: 1.02rem;
    opacity: 0.95;
    line-height: 1.55;
}

.lms-login__badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.lms-login__features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.lms-login__features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.lms-login__features i {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    color: #ecfeff;
    font-size: 0.85rem;
    margin-right: 0;
}

.lms-login__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.75rem;
}

.lms-login__pills span {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.lms-login__form-col {
    position: relative;
    z-index: 1;
}

.lms-login__card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 2.1rem 1.85rem 1.75rem;
    box-shadow: 0 24px 60px rgba(14, 116, 144, 0.14);
    width: 100%;
    max-width: 440px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    animation: dashFadeIn 0.55s ease both;
}

.lms-login__card-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0ea5e9, #10b981, #f59e0b);
}

.lms-login__logo-wrap {
    display: inline-flex;
    padding: 0.65rem;
    border-radius: 18px;
    background: linear-gradient(145deg, #ecfeff, #f0fdf4);
    border: 1px solid rgba(14, 116, 144, 0.12);
    box-shadow: 0 8px 20px rgba(14, 116, 144, 0.08);
}

.lms-login__card-title {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.lms-login__card-sub {
    color: #64748b;
    font-size: 0.9rem;
}

.lms-login__field {
    position: relative;
}

.lms-login__field > i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #0e7490;
    z-index: 2;
}

.lms-login__field .form-control {
    padding-left: 2.65rem;
}

.lms-login__field-group {
    position: relative;
}

.lms-login__field-icon {
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    background: #f8fafc;
    border: 1px solid #ced4da;
    border-right: 0;
    border-radius: 0.5rem 0 0 0.5rem;
    color: #0e7490;
}

.lms-login__field-group .form-control {
    border-left: 0;
    border-radius: 0;
}

.lms-login__field-group .password-toggle-btn {
    border-radius: 0 0.5rem 0.5rem 0;
}

.lms-login .form-control,
.lms-login .form-control-lg {
    border-radius: 12px;
    border-color: #cbd5e1;
    background: #f8fafc;
}

.lms-login .form-control:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.18);
    background: #fff;
}

.lms-login__link {
    color: #0e7490;
    text-decoration: none;
    font-size: 0.9rem;
}

.lms-login__link:hover {
    color: #155e75;
    text-decoration: underline;
}

.lms-login__submit {
    background: linear-gradient(135deg, #0ea5e9, #059669);
    border: none;
    border-radius: 14px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lms-login__submit:hover {
    background: linear-gradient(135deg, #0284c7, #047857);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(5, 150, 105, 0.3);
}

.lms-login__admin {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
}

.lms-login__admin a {
    color: #64748b;
    font-size: 0.85rem;
    text-decoration: none;
}

.lms-login__admin a:hover { color: #0e7490; }

.lms-login .btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #059669);
    border-color: transparent;
}

.lms-login .btn-primary:hover {
    background: linear-gradient(135deg, #0284c7, #047857);
    border-color: transparent;
}

.password-toggle-btn {
    border-color: var(--lms-border, #dee2e6);
    color: #64748b;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus {
    color: #0e7490;
    background: #ecfeff;
}

/* Bootstrap overrides */
.lms-body .btn-primary {
    background: var(--lms-indigo);
    border-color: var(--lms-indigo);
}

.lms-body .btn-primary:hover {
    background: var(--lms-indigo-dark);
    border-color: var(--lms-indigo-dark);
}

.lms-body .btn-outline-primary {
    color: var(--lms-indigo);
    border-color: var(--lms-indigo);
}

.lms-body .btn-outline-primary:hover {
    background: var(--lms-indigo);
    border-color: var(--lms-indigo);
}

.lms-body .progress-bar.bg-primary { background-color: var(--lms-indigo) !important; }
.lms-body .badge.bg-primary { background-color: var(--lms-indigo) !important; }

.lms-body .form-control:focus,
.lms-body .form-select:focus {
    border-color: var(--lms-indigo-light);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.2);
}

/* Responsive sidebar */
@media (max-width: 991.98px) {
    .lms-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1040;
        transform: translateX(-100%);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
    }

    .lms-sidebar.is-open { transform: translateX(0); }

    .lms-sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1035;
        display: none;
    }

    .lms-sidebar-backdrop.is-visible { display: block; }

    .lms-main { padding: 1rem; }
}

@media (max-width: 575.98px) {
    .lms-welcome { padding: 1.25rem; }
    .lms-welcome__title { font-size: 1.2rem; }
    .lms-brand__sub { display: none; }
}

/* CareerHub */
.ch-hero {
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 55%, #6366f1 100%);
    color: #fff;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
}

.ch-hero__eyebrow { font-size: 0.8rem; opacity: 0.85; letter-spacing: 0.04em; text-transform: uppercase; }
.ch-hero__title { font-size: 1.75rem; font-weight: 800; margin: 0.25rem 0; }
.ch-hero__sub { opacity: 0.9; }

.ch-job-card {
    background: #fff;
    border: 1px solid var(--lms-border, #e2e8f0);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ch-job-card__title { font-size: 1rem; font-weight: 700; margin: 0; }
.ch-job-card__company { color: #64748b; font-size: 0.9rem; }
.ch-job-card__meta { display: flex; flex-wrap: wrap; gap: 0.65rem; font-size: 0.82rem; color: #475569; margin: 0.65rem 0; }
.ch-job-card__skills { font-size: 0.82rem; color: #334155; margin-bottom: 0.75rem; flex: 1; }
.ch-job-card__footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }

.ch-badge { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; padding: 0.2rem 0.55rem; border-radius: 999px; font-weight: 600; }
.ch-badge--verified { background: #dcfce7; color: #166534; }
.ch-badge--safety { background: #f1f5f9; color: #334155; }

.ch-match { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: 8px; }
.ch-match--excellent { background: #dcfce7; color: #166534; }
.ch-match--strong { background: #dbeafe; color: #1d4ed8; }
.ch-match--good { background: #e0e7ff; color: #4338ca; }
.ch-match--partial { background: #fef3c7; color: #b45309; }
.ch-match--low { background: #fee2e2; color: #b91c1c; }

.ch-side-card { background: #fff; border: 1px solid var(--lms-border, #e2e8f0); border-radius: 14px; padding: 1rem; }
.ch-job-detail__title { font-size: 1.6rem; font-weight: 800; }
.ch-job-detail__company { color: #64748b; font-size: 1rem; }
.ch-job-detail__meta { display: flex; flex-wrap: wrap; gap: 0.75rem; color: #475569; }
.ch-job-detail__desc { white-space: pre-wrap; line-height: 1.6; }
.ch-match-reasons { background: #f8fafc; border-radius: 12px; padding: 1rem; }
.ch-alert { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 12px; padding: 0.85rem 1rem; }
.ch-filter { background: #fff; border: 1px solid var(--lms-border, #e2e8f0); border-radius: 14px; padding: 1rem; }
.ch-profile-progress .progress-bar { background: var(--lms-indigo, #4f46e5); }

.lms-nav__group { display: flex; flex-direction: column; }
.lms-nav__sublink {
    display: block;
    padding: 0.35rem 0.75rem 0.35rem 2.4rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}
.lms-nav__sublink:hover, .lms-nav__sublink.active { color: #fff; background: rgba(255, 255, 255, 0.08); border-radius: 8px; }

/* —— Colourful modern dashboard —— */
.dash-page {
    animation: dashFadeIn 0.55s ease both;
}

@keyframes dashFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.dash-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 1.85rem 2rem;
    color: #0f172a;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.75)),
        radial-gradient(circle at 12% 20%, #7dd3fc 0%, transparent 42%),
        radial-gradient(circle at 88% 10%, #86efac 0%, transparent 40%),
        radial-gradient(circle at 70% 90%, #fdba74 0%, transparent 45%),
        linear-gradient(160deg, #ecfeff, #f0fdf4 55%, #fff7ed);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 18px 40px rgba(14, 116, 144, 0.1);
}

.dash-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.45;
    pointer-events: none;
    animation: dashFloat 7s ease-in-out infinite;
}

.dash-hero__glow--a {
    width: 180px; height: 180px;
    background: #38bdf8;
    top: -40px; right: 12%;
}

.dash-hero__glow--b {
    width: 140px; height: 140px;
    background: #4ade80;
    bottom: -50px; left: 8%;
    animation-delay: -2.5s;
}

@keyframes dashFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.dash-hero__eyebrow {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0e7490;
    margin-bottom: 0.35rem;
}

.dash-hero__title {
    font-size: clamp(1.55rem, 2.5vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.45rem;
    color: #0f172a;
}

.dash-hero__lead {
    max-width: 36rem;
    color: #475569;
    margin-bottom: 1rem;
}

.dash-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dash-hero__chips span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(14, 116, 144, 0.15);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
}

.dash-hero__avatar {
    width: 84px;
    height: 84px;
    margin-left: auto;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #0e7490;
    background: linear-gradient(145deg, #fff, #e0f2fe);
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(14, 116, 144, 0.18);
    overflow: hidden;
    animation: dashFloat 6s ease-in-out infinite;
}

.dash-hero__avatar img { width: 100%; height: 100%; object-fit: cover; }

.dash-live {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(120deg, #059669 0%, #10b981 45%, #34d399 100%);
    color: #fff;
    box-shadow: 0 16px 36px rgba(5, 150, 105, 0.28);
}

.dash-live__pulse {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.25), transparent 40%);
    pointer-events: none;
}

.dash-live__body {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.dash-live__label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.95;
    margin-bottom: 0.35rem;
}

.dash-live__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: dashPulse 1.6s infinite;
}

@keyframes dashPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.65); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.dash-live__title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
}

.dash-live__sub { opacity: 0.92; font-size: 0.92rem; }

.dash-live__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dash-btn-live {
    background: #fff;
    color: #047857;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    padding: 0.55rem 1.1rem;
}

.dash-btn-live:hover { background: #ecfdf5; color: #065f46; }

.dash-btn-ghost {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    font-weight: 600;
}

.dash-btn-ghost:hover { background: rgba(255, 255, 255, 0.28); color: #fff; }

.dash-btn-outline {
    border: 1px solid #cbd5e1;
    color: #0f766e;
    background: #fff;
    border-radius: 999px;
    font-weight: 600;
}

.dash-btn-outline:hover {
    background: #ecfeff;
    border-color: #67e8f9;
    color: #0e7490;
}

.dash-stat {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.15rem 1.1rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dash-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.dash-stat__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
}

.dash-stat--sky .dash-stat__icon { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.dash-stat--mint .dash-stat__icon { background: linear-gradient(135deg, #059669, #34d399); }
.dash-stat--coral .dash-stat__icon { background: linear-gradient(135deg, #ea580c, #fb923c); }
.dash-stat--gold .dash-stat__icon { background: linear-gradient(135deg, #ca8a04, #facc15); color: #422006; }

.dash-stat__value {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.dash-stat__label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 0.2rem;
}

.dash-quick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.dash-quick__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 1rem 0.75rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    color: #0f172a;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dash-quick__item i { font-size: 1.2rem; }
.dash-quick__item:hover { transform: translateY(-3px); color: #0f172a; }

.dash-quick__item--teal { background: #ccfbf1; border-color: #99f6e4; color: #0f766e; }
.dash-quick__item--sky { background: #e0f2fe; border-color: #bae6fd; color: #0369a1; }
.dash-quick__item--coral { background: #ffedd5; border-color: #fed7aa; color: #c2410c; }
.dash-quick__item--violet { background: #fce7f3; border-color: #fbcfe8; color: #be185d; }

.dash-section-title {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.dash-panel {
    background: #fff;
    border-radius: 18px;
    padding: 1.25rem 1.35rem;
    height: 100%;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
    border-top: 4px solid transparent;
}

.dash-panel--sky { border-top-color: #38bdf8; }
.dash-panel--mint { border-top-color: #34d399; }
.dash-panel--coral { border-top-color: #fb923c; }

.dash-panel__title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dash-panel__title i { color: #0e7490; }

.dash-panel__item {
    padding: 0.7rem 0;
    border-bottom: 1px dashed #e2e8f0;
}

.dash-panel__item:last-of-type { border-bottom: none; }

.dash-panel__tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0369a1;
    background: #e0f2fe;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    margin-bottom: 0.25rem;
}

.dash-panel__link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0e7490;
    text-decoration: none;
}

.dash-panel__link:hover { text-decoration: underline; }

.lms-badge-live {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.04em;
}

@media (max-width: 767.98px) {
    .dash-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-hero { padding: 1.35rem 1.2rem; }
}

