/* Industrial-Premium LMS Styling */

:root {
    --primary-industrial: #0a2342;
    --secondary-industrial: #1e3a5f;
    --mastery-gold: #B8860B;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --success-glow: rgba(34, 197, 94, 0.2);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --action-blue: #1d4ed8;
    --safety-accent: #ef4444;
    --bg-light: #f1f5f9;
    --sidebar-dark: #0a2342;
    --sidebar-text: rgba(255, 255, 255, 0.75);
    --sidebar-active-bg: rgba(255, 255, 255, 0.12);
    --sidebar-active-text: #ffffff;
    --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: #f1f5f9;
    color: #1e293b;
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.01em;
    overflow-x: hidden;
}

/* Dashboard Cards */
.card-premium {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    overflow: hidden;
}


/* Fix for dropdown menus being clipped in short table cards */
.card-premium-actionable {
    overflow: visible !important;
}

.card-premium-actionable .table-responsive {
    overflow: visible !important;
}

.card-premium-actionable .card-body {
    min-height: 280px;
    /* Space for at least 4-5 dropdown items */
}

.card-premium:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Learning Path Progress */
.progress-path {
    height: 12px;
    border-radius: 6px;
    background-color: #e9ecef;
    margin-bottom: 1.5rem;
}

.progress-path-bar {
    border-radius: 6px;
    background: linear-gradient(90deg, var(--secondary-industrial), #20c997);
}

/* Buttons */
.btn-premium {
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-premium-primary {
    background-color: var(--action-blue);
    color: #fff;
    border: none;
}

.btn-premium-primary:hover {
    background-color: #1e40af;
    /* slightly darker blue */
    color: #fff;
    box-shadow: 0 4px 15px rgba(29, 78, 216, 0.3);
}

.btn-back-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: var(--secondary-industrial);
    transition: var(--transition-smooth);
    text-decoration: none !important;
}

.btn-back-circle:hover {
    background: #f8fafc;
    color: var(--primary-industrial);
    border-color: #cbd5e1;
}

.btn-back-circle i {
    font-size: 0.85rem;
}

/* Learning Hub Specifics */
.course-card {
    border: 1px solid #eee;
    padding: 1.5rem;
    border-radius: 20px;
    background: #fff;
}

.course-card h4 {
    color: var(--primary-industrial);
    font-weight: 700;
}

.badge-skill {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    background: rgba(44, 165, 141, 0.1);
    color: var(--secondary-industrial);
    font-weight: 600;
    border: 1px solid rgba(44, 165, 141, 0.2);
}

#side-nav {
    background: var(--sidebar-dark);
    border-right: none;
    padding-top: 0;
    transition: var(--transition-smooth);
    z-index: 1040 !important;
}

#side-nav .main-menu .top-side {
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none;
    z-index: 10;
}

#side-nav .sidebar-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#side-nav .text-muted,
#side-nav .sidebar-label {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-left: 1.65rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

#side-nav ul li a {
    border-radius: 8px;
    margin: 2px 12px;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--sidebar-text);
    transition: var(--transition-smooth);
}

#side-nav ul li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

#side-nav ul li.active a {
    background: var(--sidebar-active-bg) !important;
    color: var(--sidebar-active-text) !important;
    box-shadow: none;
    font-weight: 600;
}

#side-nav ul li a i {
    width: 20px;
    margin-right: 12px;
    opacity: 0.7;
}

#side-nav ul li.active a i {
    opacity: 1;
}

/* Professional Tables */
.table-premium {
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-top: -10px;
}

.table-premium thead th {
    background: transparent;
    border: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    /* Slate-600 for contrast compliance */
    padding: 1.25rem 1.5rem;
}

.table-premium tbody tr {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.table-premium tbody tr:hover,
.clickable-row:hover {
    background: rgba(0, 111, 255, 0.08) !important;
    box-shadow: 0 4px 12px rgba(10, 35, 66, 0.1);
}

.clickable-row {
    cursor: pointer;
    transition: background 0.15s ease-in-out;
}

/* Left-side accent bar on hover */
.table-premium tbody tr.clickable-row td:first-child {
    position: relative;
}

.table-premium tbody tr.clickable-row td:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    bottom: 25%;
    width: 4px;
    background: var(--primary-industrial);
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transform: scaleY(0.8);
    transition: all 0.15s ease-in-out;
}

.table-premium tbody tr.clickable-row:hover td:first-child::before {
    opacity: 1;
    transform: scaleY(1);
}

/* Enhancing nested link colors on hover */
.table-premium tbody tr.clickable-row:hover td a.fw-bold {
    color: var(--primary-industrial) !important;
}

/* Dim action buttons and show on hover */
.table-premium tbody tr .dropdown .btn-link {
    opacity: 0.3;
    transition: opacity 0.15s ease-in-out;
}

.table-premium tbody tr:hover .dropdown .btn-link {
    opacity: 1;
}

.table-premium tbody td {
    border: none;
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
}

.table-premium tbody td:first-child {
    border-radius: 10px 0 0 10px;
}

.table-premium tbody td:last-child {
    border-radius: 0 10px 10px 0;
}

/* Standard Form Inputs (Pill Style) */
.form-control-standard select,
.form-control-standard input {
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 0.4rem 1.25rem;
    font-size: 0.85rem;
    background-color: #f8fafc;
    color: #475569;
    outline: none;
    transition: var(--transition-smooth);
}

.form-control-standard select:focus,
.form-control-standard input:focus {
    border-color: var(--primary-industrial);
    box-shadow: 0 0 0 3px rgba(10, 35, 66, 0.05);
}

.form-control-premium {
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: var(--transition-smooth);
}

.form-control-premium:focus {
    border-color: var(--secondary-industrial);
    box-shadow: 0 0 0 4px rgba(44, 165, 141, 0.1);
}

/* Layout Utilities */
.page-header {
    background: #fff;
    padding: 2rem;
    margin: -1.5rem 0 2rem 0;
    /* Remove horizontal negative margins that cause overflow */
    border-bottom: 1px solid #eee;
}

/* Layout & Stacking Fixes */
#top-navbar {
    z-index: 1030 !important;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

/* ────────────────────────────────────────────────────────
   Leaderboard & Gamification
   ──────────────────────────────────────────────────────── */

.podium-airy {
    background: #ffffff;
    border-radius: 20px;
}

.badge-capsule {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.badge-capsule i {
    font-size: 0.8rem;
}

.rank-badge {
    box-shadow: 0 0 0 4px rgba(10, 35, 66, 0.1);
}

.progress-bar {}

/* Row Highlight for Current Technician */
.table tr.bg-primary-subtle {
    border-left: 5px solid #dc2626 !important;
    /* Industrial Red highlight */
    background-color: rgba(10, 35, 66, 0.03) !important;
}

.table tr.bg-primary-subtle td {
    font-weight: 500;
}

/* ──────────────────────────────────────────────────────── */

#top-navbar .nav-wrapper {
    background: transparent;
}

/* Control Bar (Management Component) */
.control-bar {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.control-bar .search-input-group {
    flex-grow: 1;
    max-width: 400px;
}

.control-bar .form-select-premium {
    min-width: 160px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.control-bar .btn-action {
    background: var(--primary-industrial);
    color: #fff;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Duplicate removed and properties consolidated above */

.dropdown.text-muted {
    color: var(--secondary-industrial) !important;
}

.dropdown-menu {
    z-index: 1050 !important;
}

/* Sticky elements in content don't exceed navbar layer */
.sticky-top {
    z-index: 1020 !important;
    top: 90px !important;
}

/* Premium Pagination */
.pagination-premium {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.pagination-premium .page-item .page-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    color: var(--secondary-industrial);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.pagination-premium .page-item.active .page-link {
    background: var(--primary-industrial);
    color: #fff;
    border-color: var(--primary-industrial);
}

.pagination-premium .page-item:not(.active):not(.disabled) .page-link:hover {
    background: var(--bg-light);
    color: var(--primary-industrial);
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.pagination-premium .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
}

.pagination-premium .page-item.ellipsis .page-link {
    border: none;
    background: transparent;
    cursor: default;
}

/* ── Mobile Bottom Navigation Bar ── */
.mobile-bottom-nav {
    background: #0a2342;
    height: 64px;
    z-index: 1040;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.18);
    /* Safe area support for iPhone X+ */
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Ensure sidebar content isn't hidden behind the mobile bottom nav */
@media screen and (max-width: 1150px) {
    #side-nav {
        bottom: 0;
    }

    #side-nav ul {
        padding-bottom: 72px;
    }
}

.mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.52rem;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 2px;
    gap: 2px;
    transition: color 0.18s;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.mobile-bottom-nav a i {
    font-size: 1rem;
    transition: transform 0.15s;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
    color: #fff;
}

.mobile-bottom-nav a.active i {
    color: #3b82f6;
    transform: translateY(-2px);
}

/* Push main content above the bottom nav on mobile */
@media (max-width: 991.98px) {
    #main-content {
        padding-bottom: 80px !important;
    }
}

/* ── Navbar Dropdown Overflow Fix (small phones) ── */
@media (max-width: 576px) {
    .navbar-user-dropdown.dropdown-menu {
        min-width: 0 !important;
        width: calc(100vw - 1.5rem) !important;
        right: 0 !important;
        left: auto !important;
    }
}

/* ══════════════════════════════════════════════════════
   ERROR PAGES (404 / 500)
══════════════════════════════════════════════════════ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.error-code {
    font-size: clamp(5rem, 18vw, 9rem);
    font-weight: 900;
    color: #0a2342;
    letter-spacing: -0.04em;
    line-height: 1;
    opacity: 0.08;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    pointer-events: none;
    white-space: nowrap;
}

.error-code--500 {
    opacity: 0.06;
}

.error-icon-wrap {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* ══════════════════════════════════════════════════════
   QUIZ — CIRCULAR SCORE BADGE
══════════════════════════════════════════════════════ */
.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 8px solid #0a2342;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.score-circle-pct {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0a2342;
    line-height: 1;
}

.score-circle-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.score-circle.pass {
    border-color: #16a34a;
}

.score-circle.pass .score-circle-pct {
    color: #16a34a;
}

.score-circle.fail {
    border-color: #dc2626;
}

.score-circle.fail .score-circle-pct {
    color: #dc2626;
}

/* ══════════════════════════════════════════════════════
   QUIZ — ANSWER TILE RADIO INPUTS (v2)
   Modern "Option Cards" for better scanning & accessibility.
══════════════════════════════════════════════════════ */
.answer-tiles {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.answer-tiles .form-check {
    padding: 0;
    margin: 0;
}

.answer-tiles input[type="radio"],
.answer-tiles input[type="checkbox"] {
    display: none;
}

.answer-tiles .form-check-label {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    font-size: 1.05rem;
    color: #475569;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.answer-tiles .form-check-label::before {
    content: '';
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 3px solid #cbd5e1;
    transition: all 0.3s;
    background: transparent;
    z-index: 2;
}

.answer-tiles .form-check-label:hover {
    border-color: var(--action-blue);
    background: rgba(29, 78, 216, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(10, 35, 66, 0.1);
}

.answer-tiles input[type="radio"]:checked+.form-check-label,
.answer-tiles input[type="checkbox"]:checked+.form-check-label {
    border-color: var(--action-blue);
    background: rgba(29, 78, 216, 0.08);
    color: var(--action-blue);
    font-weight: 700;
}

.answer-tiles input[type="radio"]:checked+.form-check-label::before,
.answer-tiles input[type="checkbox"]:checked+.form-check-label::before {
    background: var(--action-blue);
    border-color: var(--action-blue);
    box-shadow: inset 0 0 0 5px #fff;
    transform: scale(1.15);
}

/* Glass effect highlight on selection */
.answer-tiles input[type="radio"]:checked+.form-check-label::after,
.answer-tiles input[type="checkbox"]:checked+.form-check-label::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.05) 0%, transparent 100%);
    z-index: 1;
}

.quiz-progress {
    height: 12px !important;
    border-radius: 20px !important;
    background: #e2e8f0 !important;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quiz-progress-bar {
    background: linear-gradient(90deg, var(--primary-industrial), var(--action-blue)) !important;
    box-shadow: 0 0 15px rgba(29, 78, 216, 0.3);
}

/* Sticky quiz sub-header */
#quiz-subheader {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #0a2342;
    color: #fff;
    padding: 0.6rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
}

/* ══════════════════════════════════════════════════════
   LEADERBOARD — PODIUM
══════════════════════════════════════════════════════ */
.podium-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.podium-block {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 12px 12px 0 0;
    padding: 0.5rem 0;
    background: var(--primary-industrial);
}

.podium-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.podium-initials {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    background: var(--action-blue);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ══════════════════════════════════════════════════════
   CERTIFICATE
══════════════════════════════════════════════════════ */
@media print {
    body * {
        visibility: hidden;
    }

    #certificate-print,
    #certificate-print * {
        visibility: visible;
    }

    #certificate-print {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
    }

    .no-print {
        display: none !important;
    }
}

#certificate-print {
    max-width: 860px;
    margin: 0 auto;
    border: 2px solid #0a2342;
    border-radius: 16px;
    padding: 3rem 4rem;
    background: #fff;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', system-ui, sans-serif;
}

#certificate-print::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, rgba(29, 78, 216, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.cert-border {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px dashed rgba(10, 35, 66, 0.15);
    border-radius: 12px;
    pointer-events: none;
}

.cert-header-line {
    height: 4px;
    background: linear-gradient(90deg, #0a2342, #1d4ed8, #0a2342);
    border-radius: 2px;
    margin-bottom: 2rem;
}

.cert-footer-line {

    /* High-Fidelity Roadmap & µJourney */
    .journey-container {
        position: relative;
        padding-left: 1.5rem;
    }

    .journey-container::before {
        content: '';
        position: absolute;
        left: 15px;
        top: 0;
        bottom: 0;
        width: 3px;
        background: linear-gradient(180deg, var(--primary-industrial) 0%, #e2e8f0 100%);
        border-radius: 10px;
    }

    .journey-section {
        position: relative;
        z-index: 1;
    }

    .level-indicator {
        position: relative;
        z-index: 2;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 3px solid #fff;
    }

    .level-indicator:hover {
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(10, 35, 66, 0.3);
    }

    /* Quest Cards */
    .card-quest {
        border-radius: 20px !important;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border: 1px solid rgba(0, 0, 0, 0.03) !important;
    }

    .card-quest:hover {
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    }

    .card-quest.status-active {
        border: 2px solid var(--primary-industrial) !important;
    }

    .card-quest.status-completed {
        background: #f0fdf4 !important;
        border: 1px solid #bbf7d0 !important;
    }

    /* Glassmorphism */
    .glass-widget {
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        border: 1px solid var(--glass-border) !important;
        border-radius: 20px !important;
    }

    /* Performance Gauges */
    .gauge-ring {
        stroke-dasharray: 283;
        stroke-dashoffset: 283;
        transition: stroke-dashoffset 1s ease-out;
    }

    /* Typography Overrides */
    h1,
    h2,
    h3,
    h4,
    .fw-bold {
        letter-spacing: -0.02em;
    }

    .x-small {
        font-size: 0.75rem;
    }

    /* Course Hub Filter Dropdown */
    #course-filter {
        border: 1px solid #e2e8f0 !important;
        transition: all 0.2s ease;
        font-size: 0.875rem;
    }

    #course-filter:focus {
        box-shadow: 0 0 0 3px rgba(10, 35, 66, 0.1);
        border-color: var(--primary-industrial) !important;
    }

    @media (max-width: 768px) {
        #course-filter {
            width: 100%;
        }
    }

    height: 2px;
    background: linear-gradient(90deg, transparent, #0a2342, transparent);
    border-radius: 1px;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.cert-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0a2342;
    letter-spacing: -0.02em;
}

.cert-name {
    font-size: 2rem;
    font-weight: 700;
    color: #1d4ed8;
    border-bottom: 2px solid #1d4ed8;
    display: inline-block;
    padding-bottom: 4px;
}

.cert-course {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0a2342;
}

.cert-score {
    font-size: 1.1rem;
    font-weight: 700;
    color: #16a34a;
}

.cert-seal {
    width: 80px;
    height: 80px;
    border: 3px solid #0a2342;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════════════════ */


.login-left {
    background: radial-gradient(circle at 30% 20%, #1e3a5f 0%, #0a2342 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.login-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.login-left-content {
    position: relative;
}

.login-decoration {
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.login-form-card {
    width: 100%;
    max-width: 440px;
    z-index: 2;
}

.hex-bg {
    background-color: #f8fafc;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hex-grid' fill='%230a2342' fill-opacity='0.015' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Premium variation specifically for Login Page with higher hexagon visibility and lighting */
.hex-bg-premium {
    background-color: #f8fafc;
    background-image:
        radial-gradient(circle at 75% 50%, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0) 80%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hex-grid' fill='%230a2342' fill-opacity='0.035' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    position: relative;
}

.hex-bg-premium::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 991.98px) {
    .login-right-panel-premium {
        background: radial-gradient(circle at 50% 10%, #1e3a5f 0%, #0a2342 100%) !important;
        position: relative;
        overflow-x: hidden;
        min-height: 100vh;
        width: 100%;
    }

    .login-right-panel-premium::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        pointer-events: none;
        opacity: 0.4;
        z-index: 1;
    }

    .login-right-panel-premium .login-form-card {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .login-right-panel-premium .card-premium-glow {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap .input-icon {
    position: absolute;
    left: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    z-index: 5;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.login-input-wrap input {
    padding-left: 3.75rem !important;
    height: 52px;
    border-radius: 12px !important;
    border: 1.5px solid #e2e8f0;
    background: #fcfdfe;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-input-wrap input:focus {
    border-color: #0a2342;
    box-shadow: 0 0 0 4px rgba(10, 35, 66, 0.08);
    background: #fff;
    outline: none;
    transform: translateY(-1px);
}

.login-input-wrap input:focus~.input-icon {
    color: #0a2342;
}

.password-toggle {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    z-index: 10;
    border: none;
    background: none;
    padding: 5px;
    transition: all 0.2s;
}

.password-toggle:hover {
    color: #0a2342;
    transform: translateY(-50%) scale(1.1);
}

.btn-signin {
    background: linear-gradient(135deg, #0a2342 0%, #1e3a5f 100%);
    color: #fff;
    border: none;
    height: 52px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(10, 35, 66, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-signin::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: 0.5s;
}

.btn-signin:hover:not(:disabled)::after {
    left: 100%;
}

.btn-signin:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 35, 66, 0.3), 0 0 15px rgba(59, 130, 246, 0.2);
    filter: brightness(1.15);
    color: #fff;
}

.btn-signin:active:not(:disabled) {
    transform: translateY(0);
}

.feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s;
}

.feature-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-chip i {
    color: #60a5fa;
}

.card-premium-glow {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border-radius: 28px !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow:
        0 10px 15px -3px rgba(10, 35, 66, 0.04),
        0 20px 25px -5px rgba(10, 35, 66, 0.03),
        0 35px 60px -15px rgba(10, 35, 66, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    animation: cardEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ══════════════════════════════════════════════════════
   LESSON ADD FORM — SESSION TYPE TILES
══════════════════════════════════════════════════════ */
.lesson-form-card-header {
    background: #0a2342;
    color: #fff;
    padding: 1.4rem 2rem;
    border-radius: 12px 12px 0 0;
}

.lesson-form-card-header h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.session-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
}

@media (min-width: 768px) {
    .session-type-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.session-type-tile {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem 1rem;
    cursor: pointer;
    text-align: center;
    background: #fff;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    outline: none;
}

.session-type-tile:hover {
    border-color: #0a2342;
    background: #f8faff;
}

.session-type-tile.active {
    border-color: #0a2342;
    background: rgba(10, 35, 66, 0.05);
    box-shadow: 0 0 0 3px rgba(10, 35, 66, 0.08);
}

.session-type-tile .tile-icon {
    font-size: 1.65rem;
    margin-bottom: 0.5rem;
    color: #94a3b8;
    transition: color 0.18s;
}

.session-type-tile.active .tile-icon {
    color: #0a2342;
}

.session-type-tile .tile-label {
    font-weight: 700;
    font-size: 0.875rem;
    color: #1e293b;
    margin-bottom: 0.2rem;
}

.session-type-tile .tile-desc {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.35;
}

/* ══════════════════════════════════════════════════════
   QUILL EDITOR — TOOLBAR (Navy Brand)
══════════════════════════════════════════════════════ */
#quill-toolbar.ql-toolbar.ql-snow {
    background: #0a2342 !important;
    border: none !important;
    border-radius: 10px 10px 0 0 !important;
    padding: 8px 14px !important;
}

#quill-toolbar .ql-formats {
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
    margin-right: 8px !important;
    padding-right: 8px !important;
}

#quill-toolbar .ql-formats:last-child {
    border-right: none !important;
}

#quill-toolbar .ql-stroke {
    stroke: rgba(255, 255, 255, 0.80) !important;
}

#quill-toolbar .ql-fill {
    fill: rgba(255, 255, 255, 0.80) !important;
}

#quill-toolbar .ql-picker-label {
    color: rgba(255, 255, 255, 0.80) !important;
}

#quill-toolbar .ql-picker-label::before {
    color: rgba(255, 255, 255, 0.80) !important;
}

#quill-toolbar button:hover,
#quill-toolbar .ql-picker-label:hover {
    background: rgba(255, 255, 255, 0.10) !important;
    border-radius: 4px !important;
}

#quill-toolbar button:hover .ql-stroke,
#quill-toolbar .ql-picker-label:hover .ql-stroke {
    stroke: #fff !important;
}

#quill-toolbar button:hover .ql-fill,
#quill-toolbar .ql-picker-label:hover .ql-fill {
    fill: #fff !important;
}

#quill-toolbar button.ql-active,
#quill-toolbar .ql-picker-label.ql-active {
    background: #1d4ed8 !important;
    border-radius: 4px !important;
}

#quill-toolbar button.ql-active .ql-stroke {
    stroke: #fff !important;
}

#quill-toolbar button.ql-active .ql-fill {
    fill: #fff !important;
}

#quill-toolbar .ql-picker-options {
    background: #0f2240 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 6px !important;
}

#quill-toolbar .ql-picker-item {
    color: rgba(255, 255, 255, 0.85) !important;
}

#quill-toolbar .ql-picker-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

#quill-toolbar .ql-picker-label svg .ql-stroke {
    stroke: rgba(255, 255, 255, 0.80) !important;
}

/* Quill Editor Area */
#quill-editor {
    min-height: 500px;
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 0 !important;
}

#quill-editor.ql-container.ql-snow {
    border: 1px solid #e2e8f0 !important;
    border-top: none !important;
    border-bottom: none !important;
    font-family: 'Inter', system-ui, sans-serif;
}

#quill-editor .ql-editor {
    min-height: 500px;
    padding: 1.25rem 1.5rem;
}

#quill-editor .ql-editor.ql-blank::before {
    color: #94a3b8;
    font-style: normal;
}

#quill-meta-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.45rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: 1px solid #e8edf3;
    border-radius: 0 0 10px 10px;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.lesson-action-bar {
    position: sticky;
    bottom: 0;
    z-index: 50;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 -1.5rem -1.5rem;
    border-radius: 0 0 12px 12px;
}

.youtube-input-group .input-group-text {
    background: #fff1f2;
    border-color: #e2e8f0;
    border-right: none;
    color: #ef4444;
    border-radius: 10px 0 0 10px;
}

.youtube-input-group .form-control-premium {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

/* Image Resizer (BlotFormatter) */
.blot-formatter__resize-handle {
    width: 12px !important;
    height: 12px !important;
    background-color: #e83e8c !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    z-index: 100 !important;
}

.blot-formatter__overlay {
    border: 2px dashed #e83e8c !important;
}

.blot-formatter__toolbar {
    background-color: #1e293b !important;
    border-radius: 8px !important;
    padding: 4px !important;
    z-index: 110 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.blot-formatter__toolbar-button {
    color: #fff !important;
    border-radius: 4px !important;
}

.blot-formatter__toolbar-button--active {
    background-color: #e83e8c !important;
}

/* ══════════════════════════════════════════════════════
   LESSON VIEWER — QL-DISPLAY TYPOGRAPHY
══════════════════════════════════════════════════════ */
.ql-display {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #1e293b;
}

.ql-display h1,
.ql-display h2 {
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #eaecef;
}

.ql-display h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #0a2342;
}

.ql-display h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #0a2342;
}

.ql-display h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.ql-display p {
    margin-bottom: 1rem;
}

.ql-display p:empty,
.ql-display p br:only-child {
    display: none;
}

.ql-display ul,
.ql-display ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.ql-display li {
    margin-bottom: 0.25rem;
}

.ql-display img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 1rem 0;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.ql-display img:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 6px 6px rgba(0, 0, 0, 0.10);
}

.ql-display .align-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.ql-display .align-right {
    display: block;
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

.ql-display .align-left {
    display: block;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.ql-display blockquote {
    border-left: 4px solid #0a2342;
    background: #f0f4ff;
    padding: 0.75rem 1rem 0.75rem 1.25rem;
    color: #334155;
    margin: 1.25rem 0;
    border-radius: 0 6px 6px 0;
    font-style: normal;
}

.ql-display pre {
    background: #f6f8fa;
    color: #24292e;
    border-radius: 6px;
    padding: 1rem;
    font-size: 85%;
    line-height: 1.45;
    overflow: auto;
    margin: 1rem 0;
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

.ql-display code {
    background: #f1f5f9;
    border-radius: 4px;
    padding: 0.1em 0.4em;
    font-size: 87%;
    color: #be185d;
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

.ql-display table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.925rem;
}

.ql-display table th,
.ql-display table td {
    border: 1px solid #e2e8f0;
    padding: 0.55rem 0.85rem;
    text-align: left;
    vertical-align: top;
}

.ql-display table th {
    background: #f8fafc;
    font-weight: 600;
    color: #0a2342;
}

.ql-display table tr:nth-child(even) td {
    background: #fafbfc;
}

.ql-display strong {
    font-weight: 600;
}

.ql-display em {
    font-style: italic;
}

.ql-display a {
    color: #0366d6;
    text-decoration: none;
}

.ql-display a:hover {
    text-decoration: underline;
}

.ql-display s {
    text-decoration: line-through;
    color: #94a3b8;
}

.ql-display u {
    text-decoration: underline;
}

.ql-display>*:first-child {
    margin-top: 0 !important;
}

.ql-display>*:last-child {
    margin-bottom: 0 !important;
}

/* Code block copy button */
.pre-wrapper {
    position: relative;
    margin: 1rem 0;
}

.pre-wrapper pre {
    margin: 0;
}

.copy-code-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(10, 35, 66, 0.75);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
}

.pre-wrapper:hover .copy-code-btn {
    opacity: 1;
}

/* Reading progress bar */
#lesson-reading-progress {
    position: sticky;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: #0a2342;
    z-index: 10;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
    margin: -2rem -3rem 1.5rem;
}

/* TOC active link */
.toc-link.toc-active {
    color: #0a2342 !important;
    font-weight: 600;
    border-left: 3px solid #0a2342;
    padding-left: calc(0.5rem - 3px) !important;
    background: rgba(10, 35, 66, 0.04);
    border-radius: 0 4px 4px 0;
}

/* Specialist guidance notes */
.guidance-list p {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.guidance-list p:last-child {
    margin-bottom: 0;
}

.guidance-list p::before {
    content: "\f111";
    font-family: "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.25rem;
    font-size: 0.45rem;
    color: #0d6efd;
}

/* ══════════════════════════════════════════════════════
   COURSE ASSIGNMENT PAGE
══════════════════════════════════════════════════════ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-card-premium:hover {
    border-color: var(--action-blue) !important;
    background-color: rgba(29, 78, 216, 0.02);
}

.board-header {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.team-tech-row:hover {
    background: rgba(13, 110, 253, 0.04);
}

/* ══════════════════════════════════════════════════════
   UTILITY — SOFT BACKGROUND COLOURS
══════════════════════════════════════════════════════ */
.bg-soft-primary {
    background-color: rgba(13, 110, 253, 0.1);
}

.bg-soft-info {
    background-color: rgba(13, 202, 240, 0.1);
}

/* Course Result Cards & Utilities */
.rounded-4 {
    border-radius: 1rem !important;
}

.hover-primary {
    transition: var(--transition-smooth);
}

.hover-primary:hover {
    background-color: var(--action-blue) !important;
    color: #fff !important;
    border-color: var(--action-blue) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.2) !important;
}

.hover-primary:hover i {
    color: #fff !important;
}

.bg-light-subtle {
    background-color: #f8fafc !important;
}

/* Chevron Rotation */
.rotate-icon {
    transition: transform 0.3s ease;
}

.collapsed .rotate-icon {
    transform: rotate(-90deg);
}

.cursor-pointer {
    cursor: pointer;
}

/* ── Breadcrumb Mobile Scroll Fix ── */
.breadcrumb.flex-nowrap {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.breadcrumb.flex-nowrap .breadcrumb-item {
    flex-shrink: 0;
}

.breadcrumb.flex-nowrap .breadcrumb-item+.breadcrumb-item {
    padding-left: 0.5rem;
}

/* ==========================================================================
   Technician Dashboard: µJourney & Pro Header (Premium UI Integration)
   ========================================================================== */

/* Pro Header Section */
.card-pro-header {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #0a2342 0%, #1e3a5f 100%);
    box-shadow: 0 10px 30px -5px rgba(10, 35, 66, 0.4);
}

.card-pro-header .avatar {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* µJourney Cards (Quest Cards) */
.card-quest {
    border-radius: 20px !important;
    border: 1px solid rgba(15, 23, 42, 0.05) !important;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-quest:hover {
    box-shadow: 0 15px 30px -10px rgba(10, 35, 66, 0.15);
    background: #fdfdfd;
    transform: none !important;
}

.card-quest .points-tag {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.card-quest .btn-primary {
    background: var(--action-blue) !important;
    border: none;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-quest .btn-primary:hover {
    box-shadow: 0 6px 15px rgba(29, 78, 216, 0.35);
}

.card-quest .btn-light {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

/* Journey Grid & Indicators */
.level-indicator {
    font-size: 0.9rem;
    font-weight: 700;
    background: var(--action-blue) !important;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.2);
}

.journey-section {
    position: relative;
    padding-left: 0.5rem;
}

/* Hover Animation (µLearn Float) */
.hvr-float {
    vertical-align: middle;
    transform: perspective(1px) translateZ(0);
    transition-duration: 0.3s;
    transition-property: transform;
}

.hvr-float:hover {
    transform: none !important;
}

/* Mini-Recognition Widget (Top Performers) */
.performer-row {
    transition: background 0.2s ease;
    border-radius: 8px;
}

.performer-row:hover {
    background: #f8fafc;
}

/* Mobile Responsiveness for New Layout */
@media (max-width: 768px) {
    .card-pro-header {
        text-align: center;
        padding: 1.5rem !important;
    }

    .card-pro-header .d-flex.align-items-center {
        flex-direction: column !important;
    }

    .card-pro-header .avatar {
        margin: 0 auto 1.5rem !important;
    }

    .card-pro-header .d-flex.gap-4 {
        justify-content: center !important;
        gap: 1.5rem !important;
    }

    .journey-grid .col-md-4 {
        margin-bottom: 1rem;
    }

    .card-quest {
        padding: 1.25rem !important;
    }
}

/* Utility Extensions */
.letter-spacing-1 {
    letter-spacing: 0.05em;
}

.text-warning-emphasis {
    color: #92400e !important;
}

.bg-warning-subtle {
    background-color: #fefce8 !important;
}

.badge.x-small {
    font-size: 0.625rem;
}

/* Leaderboard Redesign - New Layout */
.leaderboard-main-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 2rem;
}

.leaderboard-podium-section {
    padding: 3.5rem 2rem;
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.25rem;
}

.podium-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: none !important;
    transition: none !important;
}

.podium-slot .avatar-container {
    position: relative;
    margin-bottom: 1.25rem;
}

.podium-slot .avatar-container img {
    border-radius: 50%;
    border: 5px solid #ffffff;
    object-fit: cover;
}

.podium-slot .trophy-badge {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px #0000001a;
    font-size: 16px;
    line-height: 1;
    z-index: 2;
    flex-shrink: 0;
}

.podium-slot.rank-1 .avatar-container img {
    width: 130px;
    height: 130px;
}

.podium-slot.rank-2 .avatar-container img,
.podium-slot.rank-3 .avatar-container img {
    width: 100px;
    height: 100px;
}

.podium-slot .user-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.podium-slot .karma-text {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.leaderboard-list-table {
    width: 100%;
}

.leaderboard-list-table thead th {
    border: none;
    padding: 1.25rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #f1f5f9;
}

.leaderboard-list-table tbody tr {
    border-bottom: 1px solid #f8fafc;
}

.leaderboard-list-table tbody tr:hover {
    background: #fcfdfe;
}

.leaderboard-list-table tbody td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    font-weight: 600;
}

.rank-number {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .leaderboard-podium-section {
        flex-direction: row;
        justify-content: center;
        align-items: flex-end;
        gap: 0.25rem;
        padding: 2rem 0.15rem;
        overflow: hidden;
    }

    .podium-slot {
        min-width: 0;
        flex: 1;
    }

    .podium-slot.rank-1 .avatar-container img {
        width: 90px;
        height: 90px;
    }

    .podium-slot.rank-2 .avatar-container img,
    .podium-slot.rank-3 .avatar-container img {
        width: 65px;
        height: 65px;
    }

    .podium-slot .user-name {
        font-size: 0.75rem;
        white-space: nowrap;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .podium-slot .karma-text {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
    }

    .podium-slot .badge-capsule {
        padding: 2px 4px;
        font-size: 0.55rem;
        font-weight: 600;
        gap: 2px;
        white-space: nowrap;
        max-width: 95%;
    }

    .podium-slot .avatar-container {
        margin-bottom: 0.75rem;
    }

    .podium-slot .trophy-badge {
        width: 18px;
        height: 18px;
        bottom: -4px;
        right: -4px;
        box-shadow: 0 1px 3px #0000001a;
    }

    .podium-slot .trophy-badge i {
        font-size: 10px;
    }

    /* Table Mobile Optimizations */
    .leaderboard-list-table thead th,
    .leaderboard-list-table tbody td {
        padding: 0.75rem 0.5rem !important;
    }

    .leaderboard-list-table .ps-5,
    .leaderboard-list-table .pe-5 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .leaderboard-list-table .rank-number {
        font-size: 0.875rem;
    }

    .leaderboard-list-table img {
        width: 32px !important;
        height: 32px !important;
    }
}

/* ══════════════════════════════════════════════════════
   MOBILE UI REFINEMENTS (APPROVED)
   ══════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    #top-navbar {
        margin-bottom: 0px !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    #main {
        padding-top: 60px !important;
    }

    #main-content {
        padding-top: 0 !important;
    }

    .page-header {
        padding: 1.25rem !important;
        margin-bottom: 1rem !important;
        margin-top: -12px !important;
        /* Counteract navbar margin reduction */
    }

    /* Reduce default margins on major layout headers */
    .mb-5.mt-4 {
        margin-top: 0.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .mb-5 {
        margin-bottom: 1.5rem !important;
    }
}