/* ====================================
   CSS VARIABLES & THEME TOKENS
   ==================================== */
/* Theme tokens */
:root {
    --color-primary: #3453d6;
    --color-primary-dark: #2a42b0;
    --color-danger: #d1434b;
    --color-surface: #ffffff;
    --color-surface-alt: #f9fafb;
    --color-border: #e3e8f0;
    --color-text: #1f2a44;
    --color-muted: #7b88ab;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.1rem;
    --shadow-xs: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-sm: 0 6px 16px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 12px 24px rgba(15, 23, 42, 0.1);
    --transition: 0.2s ease;
    --elas-sidebar-width: 260px;
    --elas-brand-gradient: radial-gradient(circle at 15% 20%, #1e2d5f 0%, #172554 45%, #0f1729 100%);
    --elas-sidebar-highlight: rgba(255, 255, 255, 0.08);
    --elas-sidebar-active: rgba(53, 115, 255, 0.35);
    --elas-surface: #edf1fb;
    --elas-card: #ffffff;
    --elas-muted: #7b88ab;
}

/* ====================================
   GLOBAL STYLES & RESETS
   ==================================== */
    * {
        box-sizing: border-box;
    }

    html {
        overflow-x: hidden;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    body {
        font-family: "Segoe UI", Tahoma, sans-serif;
        background-color: var(--elas-surface);
        color: #111a34;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        -webkit-overflow-scrolling: touch;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

/* ====================================
   APP SHELL & MAIN LAYOUT
   ==================================== */
/* ====================================
   APP SHELL & MAIN LAYOUT
   ==================================== */
    .app-shell {
        min-height: 100vh;
        height: 100vh;
        display: flex;
        gap: 2rem;
        padding: 1.5rem;
        background: radial-gradient(circle at 10% 20%, rgba(53, 83, 214, 0.08), transparent 45%),
                    radial-gradient(circle at 90% 10%, rgba(24, 169, 153, 0.08), transparent 40%),
                    linear-gradient(135deg, #e6ecfb, #f9f9ff);
        overflow: hidden;
    }

/* ====================================
   SIDEBAR NAVIGATION
   ==================================== */
/* ====================================
   SIDEBAR NAVIGATION
   ==================================== */
    .sidebar {
        width: var(--elas-sidebar-width);
        min-height: calc(100vh - 3rem);
        background: var(--elas-brand-gradient);
        color: #ffffff;
        display: flex;
        flex-direction: column;
        border-radius: 32px;
        box-shadow: 0 25px 65px rgba(3, 6, 23, 0.65);
        border: 1px solid rgba(255, 255, 255, 0.08);
        position: sticky;
        top: 1.5rem;
        max-height: calc(100vh - 3rem);
        overflow: hidden;
        isolation: isolate;
        flex-shrink: 0;
    }

    .sidebar::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 20% 15%, rgba(73, 120, 255, 0.35), transparent 55%);
        opacity: 0.3;
        pointer-events: none;
    }

    .sidebar > * {
        position: relative;
        z-index: 1;
    }

    .sidebar-nav {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0 1.75rem 2.5rem 1.75rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .sidebar-nav::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar-nav::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }

    .sidebar-nav::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
    }

    .sidebar-nav::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .sidebar .sidebar-brand {
        display: flex;
        align-items: center;
        gap: 0.9rem;
        padding: 2.5rem 1.75rem 0 1.75rem;
        margin-bottom: 1.5rem;
        flex-shrink: 0;
    }

    .sidebar .brand-logo-wrap {
        width: 70%;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0 auto;
    }

    .sidebar .brand-logo {
        width: 100%;
        height: auto;
        transform: scale(1);
        transition: transform 0.2s ease;
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    .sidebar .brand-logo:hover {
        filter: brightness(1.4) contrast(1.08);
    }

    .sidebar .brand-badge {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background-color: rgba(255, 255, 255, 0.18);
        font-weight: 700;
        letter-spacing: 0.08em;
    }

    .sidebar .brand-copy span {
        display: block;
        line-height: 1.35;
    }

    .sidebar .brand-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: #ffffff;
        letter-spacing: 0.05em;
    }

    .sidebar .brand-subtitle {
        display: none;
    }

    .sidebar .section-label {
        text-transform: uppercase;
        letter-spacing: 0.16em;
        font-size: 0.7rem;
        color: rgba(255, 255, 255, 0.55);
        margin-bottom: 0.75rem;
        margin-top: 2rem;
        font-weight: 600;
    }

    .sidebar .section-label.disclosure-toggle {
        width: 100%;
        border: none;
        background: none;
        text-align: left;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        transition: color 0.2s ease;
    }

    .sidebar .section-label.disclosure-toggle:hover {
        color: rgba(255, 255, 255, 0.85);
    }

    .sidebar .section-label.disclosure-toggle .disclosure-icon {
        font-size: 0.7rem;
        transition: transform 0.2s ease;
    }

    .sidebar .section-label.disclosure-toggle[aria-expanded="false"] .disclosure-icon {
        transform: rotate(-90deg);
    }

    .sidebar .section-label:first-of-type {
        margin-top: 0;
    }

    .sidebar .nav.flex-column {
        gap: 0.4rem;
        margin-bottom: 0;
    }

    .sidebar .nav.flex-column .nav-link {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        color: rgba(255, 255, 255, 0.85);
        border-radius: 0.95rem;
        padding: 0.6rem 0.8rem;
        font-weight: 600;
        font-size: 0.92rem;
        border: 1px solid transparent;
        background: transparent;
        transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
        text-decoration: none;
    }

    .sidebar .nav-link .nav-icon {
        width: 34px;
        height: 34px;
        border-radius: 11px;
        display: grid;
        place-items: center;
        background-color: rgba(255, 255, 255, 0.08);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
        font-size: 1rem;
        color: #ffffff;
        transition: background-color 0.2s ease, box-shadow 0.2s ease;
        flex-shrink: 0;
    }

    .sidebar .nav-link .nav-label {
        flex: 1;
    }

    .sidebar .nav-link:hover {
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.12);
        background-color: rgba(255, 255, 255, 0.05);
        transform: translateX(4px);
    }

    .sidebar .nav-link:hover .nav-icon {
        background-color: rgba(255, 255, 255, 0.15);
    }

    .sidebar .nav-link.active {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.22);
        box-shadow: 0 18px 30px rgba(3, 11, 30, 0.35);
    }

    .sidebar .nav-link.active .nav-icon {
        background-color: rgba(24, 169, 153, 0.32);
        box-shadow: 0 8px 16px rgba(24, 169, 153, 0.35);
    }

    .sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
    }

    .sidebar::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .sidebar .sidebar-footer {
        display: none;
    }

/* ====================================
   TOPBAR & PAGE HEADER
   ==================================== */
    .topbar {
        background: transparent;
        border-bottom: 1px solid #e3eaf8;
        padding: 0 0 1.5rem 0 !important;
        margin-bottom: 0;
    }

    .topbar .eyebrow {
        text-transform: uppercase;
        letter-spacing: 0.14em;
        font-size: 0.72rem;
        color: #8391b5;
        margin-bottom: 0.25rem;
    }

    .topbar h1 {
        margin: 0;
        font-size: 1.3rem;
        font-weight: 700;
    }

    .topbar p {
        margin: 0.25rem 0 0;
        color: #6c7a99;
        font-size: 0.92rem;
    }

/* ====================================
   WORKSPACE PANEL & CONTENT AREA
   ==================================== */
/* ====================================
   WORKSPACE PANEL & CONTENT AREA
   ==================================== */
    .workspace-panel {
        background: #ffffff;
        border-radius: 36px;
        padding: 1.75rem;
        box-shadow: 0 35px 80px rgba(15, 23, 42, 0.12);
        display: flex;
        flex-direction: column;
        flex: 1;
        min-width: 0;
        overflow-y: auto;
        overflow-x: visible;
        max-height: calc(100vh - 3rem);
    }

    .workspace-panel::-webkit-scrollbar {
        width: 8px;
    }

    .workspace-panel::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }

    .workspace-panel::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.15);
        border-radius: 10px;
    }

    .workspace-panel::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.25);
    }

    .main-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        background: transparent;
        overflow: visible;
    }

    .page-wrapper {
        flex: 1;
        padding: 0;
        width: 100%;
        max-width: 1320px;
        margin: 0 auto;
    }

/* ====================================
   PAGE COMPONENTS & UTILITIES
   ==================================== */
    .page-intro {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1.5rem;
        margin-bottom: 1.75rem;
        background: var(--elas-card);
        border-radius: 1.6rem;
        padding: 1.75rem;
        border: 1px solid rgba(17, 27, 56, 0.06);
        box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
    }

    .page-intro .eyebrow {
        text-transform: uppercase;
        letter-spacing: 0.14em;
        font-size: 0.74rem;
        color: #8391b5;
        margin-bottom: 0.4rem;
    }

    .page-intro .page-title {
        margin: 0;
        font-size: 1.6rem;
        font-weight: 700;
    }

    .page-intro .page-subtitle {
        margin: 0.35rem 0 0;
        color: #6c7a99;
        font-size: 0.96rem;
    }

    .page-intro__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .page-intro__actions .btn {
        border-radius: 999px;
        padding: 0.65rem 1.25rem;
        font-weight: 600;
    }

    .page-intro__actions .btn.btn-secondary {
        background-color: rgba(24, 169, 153, 0.12);
        color: #168979;
        border: none;
    }

    .notifications-placeholder {
        background: linear-gradient(120deg, rgba(49, 78, 159, 0.08), rgba(24, 169, 153, 0.08));
        border: 1px solid rgba(49, 78, 159, 0.2);
        border-radius: 1rem;
        padding: 1rem 1.5rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1.75rem;
    }

    .notifications-placeholder a {
        font-weight: 600;
    }

/* ====================================
   DASHBOARD COMPONENTS
   ==================================== */
/* ====================================
   DASHBOARD COMPONENTS
   ==================================== */
    .dashboard-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.5rem;
    }

    .dashboard-card {
        background: var(--elas-card);
        border-radius: 1.4rem;
        padding: 1.5rem;
        border: 1px solid rgba(15, 24, 52, 0.08);
        box-shadow: 0 22px 40px rgba(15, 23, 42, 0.08);
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        position: relative;
        overflow: hidden;
    }

    .dashboard-card::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        border-top: 4px solid rgba(49, 78, 159, 0.35);
        pointer-events: none;
    }

    .dashboard-card h3 {
        margin-bottom: 0.25rem;
        font-size: 1.05rem;
        font-weight: 700;
    }

    .cpe-points-display {
        font-size: 2.7rem;
        font-weight: 700;
        color: #141f46;
        margin: 0;
    }

    .compliance-status {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.45rem 0.75rem;
        border-radius: 999px;
        font-weight: 600;
        font-size: 0.85rem;
    }

    .dashboard-card.compliant .compliance-status {
        background-color: rgba(46, 154, 108, 0.16);
        color: #1f7a56;
    }

    .dashboard-card.not-compliant .compliance-status {
        background-color: rgba(209, 67, 75, 0.16);
        color: #a8323a;
    }

    .recent-training ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }

    .recent-training li span {
        display: block;
        color: #6c7a99;
        font-size: 0.88rem;
    }

    .view-all-link {
        align-self: flex-end;
        font-weight: 600;
        font-size: 0.87rem;
    }

/* ====================================
   ACTIVITY & HISTORY COMPONENTS
   ==================================== */
/* ====================================
   ACTIVITY & WORKSHOP COMPONENTS
   ==================================== */
    .activity-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .activity-card {
        background-color: #ffffff;
        border-radius: 1.1rem;
        padding: 1.5rem;
        border: 1px solid rgba(227, 231, 242, 0.9);
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
        display: flex;
        flex-direction: column;
        gap: 1.1rem;
    }

    .activity-card h3 {
        margin: 0;
        font-size: 1.2rem;
    }

    .activity-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem;
        font-size: 0.85rem;
    }

/* ====================================
   BADGES & STATUS INDICATORS
   ==================================== */
    .badge-soft {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.35rem 0.7rem;
        border-radius: 999px;
        background-color: rgba(49, 78, 159, 0.12);
        color: #314e9f;
        font-weight: 600;
        font-size: 0.78rem;
    }

    .badge-soft-accent {
        background-color: rgba(24, 169, 153, 0.16);
        color: #168979;
    }

    .badge-soft-success {
        background-color: rgba(34, 197, 94, 0.12);
        color: #15803d;
    }

    .badge-soft-info {
        background-color: rgba(59, 130, 246, 0.12);
        color: #1e40af;
    }

    .activity-footer {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.85rem;
        align-items: center;
    }

/* ====================================
   TABLE & HISTORY COMPONENTS
   ==================================== */
    .history-table-container {
        background-color: transparent;
        border-radius: 0.85rem;
        border: 1px solid rgba(227, 231, 242, 0.5);
        overflow-x: auto;
        display: block;  
        -webkit-overflow-scrolling: touch;
        position: relative;
    }

    .history-table-container::-webkit-scrollbar {
        height: 8px;
    }

    .history-table-container::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 10px;
    }

    .history-table-container::-webkit-scrollbar-thumb {
        background: #3453d6;
        border-radius: 10px;
    }

    .history-table-container::-webkit-scrollbar-thumb:hover {
        background: #2a42b0;
    }

    /* Table responsive - enable horizontal scroll on all screen sizes */
    .table-responsive {
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative;
    }

    .table-responsive::-webkit-scrollbar {
        height: 8px;
    }

    .table-responsive::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 10px;
    }

    .table-responsive::-webkit-scrollbar-thumb {
        background: #3453d6;
        border-radius: 10px;
    }

    .table-responsive::-webkit-scrollbar-thumb:hover {
        background: #2a42b0;
    }

    .table-responsive table {
        width: 100%;
        margin-bottom: 0;
        min-width: 550px !important;
    }

    .surface-panel {
        background: var(--elas-card);
        border-radius: 1.5rem;
        padding: 1.75rem;
        border: 1px solid rgba(17, 34, 88, 0.07);
        box-shadow: 0 22px 40px rgba(15, 23, 42, 0.08);
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
    }

    .surface-panel > h3 {
        margin-bottom: 0.35rem;
        font-size: 1.25rem;
        font-weight: 700;
    }

    .surface-panel > p {
        color: #6c7a99;
        margin-bottom: 0;
        font-size: 0.95rem;
    }

    .history-table th,
    .history-table td {
        padding: 0.35rem 0.45rem;
        vertical-align: middle;
        white-space: nowrap;
        font-size: 0.66rem;
        line-height: 1.2;
    }

    .history-table {
        min-width: 550px !important;
        table-layout: auto;
        width: max-content;
    }

    .history-table thead th {
        background-color: rgba(49, 78, 159, 0.06);
        font-size: 0.62rem;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        color: #6c7a99;
        font-weight: 700;
        padding: 0.45rem 0.5rem;
    }

    .activity-list-table th,
    .activity-list-table td {
        padding: 0.7rem 0.85rem;
        vertical-align: middle;
        font-size: 0.85rem;
    }

    .activity-list-table thead th {
        background-color: rgba(49, 78, 159, 0.06);
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #6c7a99;
        font-weight: 700;
    }

    .activity-actions .btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
        line-height: 1.1;
        border-radius: 0.6rem;
        white-space: nowrap;
    }

    .activity-actions .dropdown-toggle {
        padding: 0.35rem 0.55rem;
        min-width: 36px;
    }

    .activity-actions .dropdown-toggle::after {
        margin-left: 0.35rem;
    }

/* ====================================
   STATUS BADGES & INDICATORS
   ==================================== */
    .status-badge {
        display: inline-flex;
        align-items: center;
        padding: 0.35rem 0.7rem;
        border-radius: 999px;
        font-weight: 600;
        font-size: 0.78rem;
        color: #ffffff;
    }

    /* Status Badge Color Variants */
    .status-registered { background-color: #1f7a56; }
    .status-attended { background-color: #1f7a56; }
    .status-cancelled { background-color: #a8323a; }
    .status-pending { background-color: #f0a100; color: #1f2a44; }
    .status-active { background-color: #1f7a56; }
    .status-inactive { background-color: #6c7a99; }
    .status-approved { background-color: #1f7a56; }
    .status-rejected { background-color: #a8323a; }
    .status-scheduled { background-color: #314e9f; }
    .status-postponed { background-color: #f0a100; color: #1f2a44; }
    .status-completed { background-color: #1b8a6b; }

/* ====================================
   FORM CONTAINERS
   ==================================== */
    .form-container {
        background-color: #ffffff;
        border-radius: 1.1rem;
        border: 1px solid rgba(227, 231, 242, 0.9);
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
        padding: 1.75rem;
    }

/* ====================================
   RESPONSIVE: TABLET & BELOW (≤992px)
   ==================================== */
/* ====================================
   RESPONSIVE: TABLET & BELOW (≤992px)
   ==================================== */
    @media (max-width: 992px) {
        .app-shell {
            padding: 0 !important;
            gap: 0 !important;
            height: auto !important;
            min-height: 100vh;
            overflow-x: hidden;
            display: block !important;
            flex-direction: row !important;
        }

        .sidebar {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 280px !important;
            height: 100vh !important;
            max-height: 100vh !important;
            min-height: 100vh !important;
            border-radius: 0 !important;
            box-shadow: 4px 0 20px rgba(3, 6, 23, 0.3) !important;
            z-index: 2000 !important;
            transition: transform 0.3s ease-in-out;
            overflow-y: auto;
            display: flex !important;
            transform: translateX(-100%);
        }

        .sidebar.show {
            transform: translateX(0) !important;
        }

        .sidebar-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1999;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
            pointer-events: none;
        }

        .sidebar-overlay.show {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .workspace-panel {
            padding: 0 !important;
            max-height: none !important;
            overflow-y: visible !important;
            overflow-x: visible !important;
            border-radius: 0;
            flex: none;
            box-shadow: none;
            width: 100% !important;
            margin-left: 0 !important;
            margin-top: 0 !important;
        }

        .topbar {
            border-radius: 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            background: white;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            padding: 1rem !important;
        }

        .main-content {
            padding: 1.5rem 1rem;
            width: 100%;
            overflow: visible !important;
            height: auto !important;
        }

        .page-wrapper {
            padding: 0;
            overflow: visible !important;
            height: auto !important;
        }
    }

/* ====================================
   AUTHENTICATION & LOGIN PAGE
   ==================================== */
/* ====================================
   AUTHENTICATION PAGES
   ==================================== */
    .auth-body {
        background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        margin: 0;
        padding: 0;
        position: relative;
        overflow: hidden;
    }

    .auth-body::before,
    .auth-body::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        filter: blur(60px);
        opacity: 0.5;
        pointer-events: none;
    }

    .auth-body::before {
        width: 420px;
        height: 420px;
        background: rgba(24, 169, 153, 0.35);
        bottom: -160px;
        left: -120px;
    }

    .auth-body::after {
        width: 360px;
        height: 360px;
        background: rgba(49, 78, 159, 0.38);
        top: -140px;
        right: -110px;
    }

    .auth-wrapper {
        max-width: 960px;
        width: 100%;
        margin: 0 auto;
    }

    .auth-card {
        border-radius: 1.1rem;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
        border: none;
    }

    .auth-brand {
        background: var(--elas-brand-gradient);
        border-radius: 1.1rem;
        color: #ffffff;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    }

    .auth-brand ul {
        margin: 0;
    }

    .auth-footer {
        margin-top: 1.25rem;
        font-size: 0.9rem;
        color: #6c7a99;
    }

    /* Modern Login Container */
    .modern-login-container {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        min-height: 100vh;
    }

    /* Login Card Container - Single Column */
    .login-card {
        display: flex;
        flex-direction: column;
        max-width: 480px;
        width: 100%;
        height: fit-content;
        background: #ffffff;
        border-radius: 20px;
        overflow: visible;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);
        border: none;
        box-sizing: border-box;
    }

    /* Login Header Section - Logo and Title */
    .login-header-section {
        padding: 3rem 3rem 2rem;
        text-align: center;
        background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
        border-bottom: 1px solid #e2e8f0;
    }

    .login-header-section .logo-container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .auth-logo {
        width: 280px;
        height: auto;
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
    }

    .system-title {
        font-size: 1.1rem;
        font-weight: 700;
        color: #1e40af;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin: 0;
        line-height: 1.4;
    }

    /* Login Hero - Left Side */
    .login-hero {
        position: relative;
        background: linear-gradient(135deg, #1e40af 0%, #3b82f6 45%, #0ea5e9 100%);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 2.5rem;
        overflow: hidden;
        padding: 3rem 2.5rem 2.75rem 2.5rem;
    }

    .login-hero::before {
        content: "";
        position: absolute;
        top: -50%;
        right: -20%;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
        border-radius: 50%;
    }

    .login-hero::after {
        content: "";
        position: absolute;
        bottom: -30%;
        left: -10%;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        border-radius: 50%;
    }

    /* Hero Content Wrapper */
    .hero-content {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    /* Logo Container & Styling */
    .logo-container {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
    }

    .logo-glow {
        position: absolute;
        inset: -30px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 65%);
        filter: blur(40px);
        z-index: 0;
    }

    .hero-logo {
        position: relative;
        width: 480px;
        height: auto;
        max-width: none;
        z-index: 1;
        filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.15));
        margin-bottom: 0.5rem;
    }

    /* Hero Text & Typography */
    .hero-text {
        color: #ffffff;
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        max-width: 360px;
        margin: 0 auto;
    }

    .hero-badge {
        display: inline-block;
        padding: 0;
        background: transparent;
        backdrop-filter: none;
        border-radius: 0;
        font-size: 1.05rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.16em;
        margin: 0 0 0.35rem 0;
        align-self: center;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .hero-title {
        font-size: 2.6rem;
        font-weight: 700;
        line-height: 1.3;
        margin: 0;
        color: #ffffff;
        display: block;
    }

    .hero-description {
        font-size: 1.15rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.9);
        margin: 0;
        padding: 0;
        font-weight: 400;
    }

    /* Features Grid - Live Points, Workshops, Evidence */
    .features-grid {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    /* Individual Feature Cards */
    .feature-card {
        background: rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(14px);
        border: 1.5px solid rgba(255, 255, 255, 0.35);
        border-radius: 12px;
        padding: 1rem 1.25rem;
        text-align: left;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        will-change: transform;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .feature-card:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: translateX(5px) translateY(-2px);
        border-color: rgba(255, 255, 255, 0.5);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    
    @media (max-width: 768px) {
        .feature-card {
            backdrop-filter: none;
            background: rgba(255, 255, 255, 0.2);
        }
        
        .feature-card:hover {
            transform: none;
        }
    }
    }

    /* Feature Card Icons */
    .feature-icon {
        width: 44px;
        height: 44px;
        margin: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        font-size: 1.3rem;
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }

    .feature-card:hover .feature-icon {
        transform: scale(1.08);
    }

    .feature-card h3 {
        font-size: 0.92rem;
        font-weight: 600;
        color: #ffffff;
        margin: 0;
        letter-spacing: 0.01em;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    .feature-card p {
        font-size: 0.72rem;
        color: rgba(255, 255, 255, 0.75);
        margin: 0;
        line-height: 1.3;
        display: none;
    }

    /* Login Form Section */
    .login-form-section {
        padding: 2.5rem 3rem 3rem;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        background: #ffffff;
    }

    /* Form Header & Badge */
    .form-header {
        text-align: center;
    }

    .access-badge {
        display: inline-block;
        padding: 0.5rem 1.25rem;
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(37, 99, 235, 0.12));
        color: #2563eb;
        border-radius: 50px;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        margin-bottom: 1.25rem;
        border: 1px solid rgba(59, 130, 246, 0.2);
    }

    .form-header h2 {
        font-size: 2.25rem;
        font-weight: 700;
        color: #0f172a;
        margin: 0 0 0.75rem 0;
        letter-spacing: -0.02em;
    }

    .form-header p {
        font-size: 0.95rem;
        color: #64748b;
        margin: 0;
        line-height: 1.6;
    }

    .login-form {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Form Groups & Labels */
    .form-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-group label {
        font-size: 0.875rem;
        font-weight: 600;
        color: #334155;
    }

    .form-input {
        padding: 1rem 1.25rem;
        border: 2px solid #e2e8f0;
        border-radius: 10px;
        font-size: 0.95rem;
        transition: all 0.2s ease;
        background: #f8fafc;
    }

    .form-input:focus {
        outline: none;
        border-color: #3b82f6;
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
    }

    .form-input::placeholder {
        color: #94a3b8;
    }

    /* Password Field with Toggle */
    .password-field {
        position: relative;
        display: flex;
        align-items: center;
    }

    .password-field .form-input {
        padding-right: 50px;
        width: 100%;
    }

    .toggle-password {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 45px;
        background: none;
        border: none;
        cursor: pointer;
        color: #64748b;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.2s ease;
        z-index: 10;
    }

    .toggle-password:hover {
        color: #3b82f6;
    }

    .toggle-password:focus {
        outline: none;
    }

    .form-footer {
        display: flex;
        justify-content: flex-end;
        margin-top: -0.5rem;
    }

    .forgot-link {
        font-size: 0.875rem;
        color: #3b82f6;
        font-weight: 600;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .forgot-link:hover {
        color: #2563eb;
    }

    .btn-submit {
        padding: 1.1rem;
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        color: #ffffff;
        border: none;
        border-radius: 10px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.25s ease;
        box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
        position: relative;
        overflow: hidden;
    }

    .btn-submit:hover {
        background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
        transform: translateY(-1px);
    }

    .btn-submit:active {
        transform: translateY(0);
    }

    .form-meta {
        text-align: center;
        font-size: 0.9rem;
        color: #64748b;
    }

    .signup-link {
        color: #3b82f6;
        font-weight: 600;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .signup-link:hover {
        color: #2563eb;
        text-decoration: underline;
    }

    @media (max-width: 992px) {
        .modern-login-container {
            padding: 1.5rem;
            box-sizing: border-box;
        }
        
        .login-card {
            grid-template-columns: 1fr;
            min-height: auto;
            width: 100%;
            max-width: 600px;
            margin: 0 auto;
        }
        
        .login-hero {
            padding: 2rem 1.5rem;
            min-height: auto;
        }
        
        .hero-logo {
            width: 260px;
        }
        
        .hero-badge {
            font-size: 0.88rem;
        }
        
        .hero-title {
            font-size: 1.7rem;
        }
        
        .hero-description {
            font-size: 0.96rem;
            padding: 0;
        }
        
        .features-grid {
            grid-template-columns: repeat(3, 1fr);
            gap: 0.75rem;
        }
        
        .feature-card {
            padding: 1rem 0.75rem;
        }
        
        .feature-icon {
            width: 40px;
            height: 40px;
            margin-bottom: 0.5rem;
        }
        
        .feature-card h3 {
            font-size: 0.85rem;
        }
        
        .feature-card p {
            font-size: 0.75rem;
        }
        
        .login-form-section {
            padding: 2rem 1.5rem;
        }
        
        .signin-hero {
            padding: clamp(32px, 6vh, 48px) clamp(28px, 6vw, 44px);
            gap: 36px;
        }

        .signin-form-pane {
            padding: clamp(32px, 6vh, 48px) clamp(28px, 6vw, 44px);
        }
    }

    @media (max-height: 820px) {
        .auth-body {
            align-items: flex-start;
        }

        .signin-card {
            min-height: auto;
        }

        .signin-hero {
            gap: 32px;
        }

        .signin-form-pane {
            gap: 28px;
        }
    }

    @media (max-height: 700px) {
        .signin-hero {
            gap: 28px;
            padding: 28px 32px;
        }

        .signin-hero__header {
            gap: 16px;
        }

        .signin-logo {
            width: 140px;
            height: 140px;
        }

        .signin-form-pane {
            padding: 28px 32px;
            gap: 24px;
        }

        .signin-form-header h2 {
            font-size: 1.65rem;
        }

        .signin-form .form-control {
            padding-top: 0.9rem;
        }
    }

/* ====================================
   RESPONSIVE: MOBILE (≤768px)
   ==================================== */
/* ====================================
   RESPONSIVE: MOBILE (≤768px)
   Mobile-specific optimizations
   ==================================== */
    @media (max-width: 768px) {
        /* Disable heavy effects for better mobile performance */
        .auth-body::before,
        .auth-body::after {
            display: none;
        }
        
        .login-hero::before,
        .login-hero::after {
            display: none;
        }
        
        .logo-glow {
            filter: none;
        }
        
        .feature-card {
            backdrop-filter: none !important;
            background: rgba(255, 255, 255, 0.2) !important;
        }
        
        .modern-login-container {
            padding: 1rem;
            box-sizing: border-box;
        }
        
        .login-card {
            border-radius: 16px;
            width: 100%;
            max-width: 100%;
            margin: 0;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        }
        
        .login-hero {
            padding: 1.75rem 1.25rem;
            min-height: auto;
            background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
        }
        
        .hero-logo {
            width: 210px;
        }
        
        .hero-badge {
            font-size: 0.82rem;
            letter-spacing: 0.12em;
        }
        
        .hero-title {
            font-size: 1.45rem;
        }
        
        .hero-description {
            font-size: 0.9rem;
            padding: 0;
        }
        
        .features-grid {
            gap: 0.6rem;
        }
        
        .feature-card {
            padding: 0.875rem 0.5rem;
        }
        
        .feature-icon {
            width: 36px;
            height: 36px;
        }
        
        .feature-icon svg {
            width: 18px;
            height: 18px;
        }
        
        .feature-card h3 {
            font-size: 0.8rem;
            margin-bottom: 0.25rem;
        }
        
        .feature-card p {
            font-size: 0.7rem;
        }
        
        .login-form-section {
            padding: 1.75rem 1.25rem;
        }
        
        .form-header h2 {
            font-size: 1.5rem;
        }
        
        .signin-hero__header {
            max-width: 100%;
        }

        .signin-hero__grid {
            grid-template-columns: 1fr;
        }
    }
    auth-body {
            padding: 0;
            margin: 0;
        }
        
        .modern-login-container {
            padding: 1rem;
            min-height: 100vh;
            display: flex;
            align-items: stretch;
            justify-content: center;
            box-sizing: border-box;
            margin: 0;
        }
        
        .login-card {
            border-radius: 12px;
            width: 100%;
            max-width: 100%
            margin: 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            transform: translateZ(0);
        }
        
        .login-hero {
            padding: 1.5rem 1rem;
            min-height: auto;
            background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
        }
        
        .hero-content {
            gap: 0.875rem;
        }
        
        .hero-logo {
            width: 180px;
        }
        
        .logo-glow {
            display: none;
        }
        
        .hero-badge {
            font-size: 0.75rem;
            letter-spacing: 0.1em;
        }
        
        .hero-title {
            font-size: 1.25rem;
        }
        
        .hero-description {
            font-size: 0.85rem;
            padding: 0;
            line-height: 1.45;
        }
        
        .features-grid {
            grid-template-columns: 1fr;
            gap: 0.5rem;
            margin-top: 1rem;
        }
        
        .feature-card {
            padding: 0.875rem 1rem;
            flex-direction: row;
            text-align: left;
            gap: 0.75rem;
            backdrop-filter: none;
            background: rgba(255, 255, 255, 0.25);
            transform: translateZ(0);
            -webkit-transform: translateZ(0);
        }
        
        .feature-card:hover {
            transform: translateZ(0);
            -webkit-transform: translateZ(0);
        }
        
        .feature-icon {
            width: 40px;
            height: 40px;
            margin: 0;
            flex-shrink: 0;
        }
        
        .feature-icon svg {
            width: 20px;
            height: 20px;
        }
        
        .feature-card h3 {
            font-size: 0.875rem;
            margin-bottom: 0.15rem;
        }
        
        .feature-card p {
            font-size: 0.75rem;
        }
        
        .login-form-section {
            padding: 1.5rem 1rem;
            gap: 1rem;
        }
        
        .form-header {
            margin-bottom: 0.5rem;
        }
        
        .access-badge {
            font-size: 0.7rem;
        }
        
        .form-header h2 {
            font-size: 1.35rem;
            margin: 0.5rem 0;
        }
        
        .form-header p {
            font-size: 0.85rem;
        }
        
        .form-group {
            margin-bottom: 1rem;
        }
        
        .form-group label {
            font-size: 0.85rem;
        }
        
        .form-input {
            padding: 0.75rem;
            font-size: 0.9rem;
        }
        
        .btn-submit {
            padding: 0.875rem;
            font-size: 0.95rem;
        }
        
        .form-meta {
            font-size: 0.85rem;
        }
    }

    @media (max-width: 576px) {
        .auth-body {
            padding: 32px 16px;
        }

        .signin-hero {
            gap: 24px;
            padding: 28px 24px;
        }

        .signin-logo {
            width: 200px;
            height: 200px;
        }

        .signin-logo::before {
            inset: -30px;
            filter: blur(40px);
        }

        .signin-actions {
            flex-direction: column;
            align-items: stretch;
        }

        .signin-actions .btn {
            width: 100%;
        }

        .signin-card {
            border-radius: 22px;
        }

        .signin-form-pane {
            padding: 32px 24px;
        }
    }

/* ====================================
   ACTION FORMS & BUTTONS
   ==================================== */
/* ====================================
   ACTION FORMS & CUSTOM BUTTONS
   CPE Input, Approve/Reject Buttons
   ==================================== */
    .action-form .cpe-input {
        width: 80px;
        text-align: center;
    }

    .action-form .btn-approve {
        background-color: #1f7a56;
        border-color: #1f7a56;
    }

    .action-form .btn-approve:hover {
        background-color: #186147;
        border-color: #186147;
    }

    .action-form .btn-reject {
        background-color: #a8323a;
        border-color: #a8323a;
    }

    .action-form .btn-reject:hover {
        background-color: #87262d;
        border-color: #87262d;
    }

    @media (max-width: 768px) {
        .page-wrapper {
            padding: 1.5rem;
        }

        .page-intro {
            flex-direction: column;
            align-items: flex-start;
        }

        .notifications-placeholder {
            flex-direction: column;
            align-items: flex-start;
        }
    }


.app-shell__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.topbar__info h1 {
    margin: 0;
    font-size: 1.5rem;
}

.topbar__info p {
    margin: 4px 0 0;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.user-chip__name {
    font-weight: 600;
}

.user-chip__role {
    font-size: 0.8rem;
    color: var(--color-muted);
}

.page-content {
    flex: 1;
    padding: 32px;
    background: var(--color-surface-alt);
}

.page-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.page-intro__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.card {
    background: var(--elas-card);
    border-radius: 1.5rem;
    padding: 1.75rem;
    border: 1px solid rgba(17, 34, 88, 0.07);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.08);
}

.card > h3 {
    margin-bottom: 0.35rem;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
    background: var(--color-primary);
    color: #ffffff;
    text-decoration: none;
}

.btn:hover {
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-xs);
}

.btn:disabled {
    background: #cbd5ff;
    color: #6b7a99;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: rgba(52, 83, 214, 0.12);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background: rgba(52, 83, 214, 0.22);
    color: var(--color-primary-dark);
}

.btn-ghost {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid rgba(52, 83, 214, 0.24);
}

.btn-ghost:hover {
    background: rgba(52, 83, 214, 0.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-danger,
.btn-cancel {
    background: var(--color-danger);
    color: #ffffff;
}

.btn-danger:hover,
.btn-cancel:hover {
    background: #a93238;
}

.btn-view {
    display: inline-flex;
    padding: 8px 14px;
    background: rgba(52, 83, 214, 0.15);
    color: var(--color-primary-dark);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
}

.btn-view:hover {
    background: rgba(52, 83, 214, 0.28);
}

/* Alerts */
.message {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-weight: 500;
    border: 1px solid transparent;
}

.message.success {
    background: rgba(46, 154, 108, 0.12);
    color: var(--color-success);
    border-color: rgba(46, 154, 108, 0.25);
}

.message.error {
    background: rgba(209, 67, 75, 0.12);
    color: var(--color-danger);
    border-color: rgba(209, 67, 75, 0.25);
}

.message.info {
    background: rgba(52, 83, 214, 0.12);
    color: var(--color-primary);
    border-color: rgba(52, 83, 214, 0.25);
}

/* Dashboard */
.notifications-placeholder {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, rgba(52, 83, 214, 0.08), rgba(24, 169, 153, 0.08));
    border: 1px solid rgba(52, 83, 214, 0.15);
    margin-bottom: 28px;
}

.notifications-placeholder a {
    font-weight: 600;
}

.dashboard-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.dashboard-card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(227, 231, 242, 0.8);
    background: var(--color-surface);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-xs);
}

.dashboard-card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.cpe-points-display {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    line-height: 1;
}

.compliance-status {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dashboard-card.compliant .compliance-status {
    background: rgba(46, 154, 108, 0.12);
    color: var(--color-success);
}

.dashboard-card.not-compliant .compliance-status {
    background: rgba(209, 67, 75, 0.12);
    color: var(--color-danger);
}

.recent-training ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-training li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recent-training li strong {
    font-weight: 600;
    color: var(--color-text);
}

.recent-training li em {
    color: var(--color-muted);
    font-style: normal;
}

.view-all-link {
    align-self: flex-end;
    font-weight: 600;
}

/* activity catalog */
.activity-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.activity-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(227, 231, 242, 0.8);
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: var(--shadow-xs);
}

.activity-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.activity-summary {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin: 0;
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 0.88rem;
    color: var(--color-muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(52, 83, 214, 0.12);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.8rem;
}

.badge-neutral {
    background: rgba(27, 37, 64, 0.08);
    color: var(--color-text);
}

.badge-accent {
    background: rgba(24, 169, 153, 0.12);
    color: var(--color-accent);
}

.activity-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Tables */
.history-table-container {
    margin-top: 20px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(227, 231, 242, 0.8);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.history-table th,
.history-table td {
    padding: 16px 18px;
    text-align: left;
    font-size: 0.9rem;
}

.history-table thead th {
    background: rgba(52, 83, 214, 0.06);
    color: var(--color-muted);
    font-weight: 600;
}

.history-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.015);
}

.history-table tbody tr:hover {
    background: rgba(52, 83, 214, 0.08);
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: capitalize;
    color: #ffffff;
}

.status-registered {
    background: var(--color-success);
}

.status-attended {
    background: var(--color-success);
}

.status-cancelled {
    background: var(--color-danger);
}

.status-pending {
    background: var(--color-warning);
}

.status-active {
    background: var(--color-success);
}

.status-inactive {
    background: #6c7a99;
}

.status-approved {
    background: var(--color-success);
}

.status-rejected {
    background: var(--color-danger);
}

.status-scheduled {
    background: var(--color-primary);
}

.status-postponed {
    background: var(--color-warning);
    color: #1f2a44;
}

.status-completed {
    background: #1b8a6b;
}

/* Forms */
.form-container {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(227, 231, 242, 0.8);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    max-width: 720px;
}

.form-container h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.form-group label {
    font-weight: 600;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    font-size: 0.95rem;
    transition: border var(--transition), box-shadow var(--transition);
    background: var(--color-surface);
    color: var(--color-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(52, 83, 214, 0.65);
    box-shadow: 0 0 0 3px rgba(52, 83, 214, 0.15);
}

.form-group input:disabled,
.form-group select:disabled {
    background: rgba(27, 37, 64, 0.06);
    color: var(--color-muted);
    cursor: not-allowed;
}

.form-group small {
    font-size: 0.78rem;
    color: var(--color-muted);
}

.form-group .file-input::file-selector-button {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(52, 83, 214, 0.24);
    background: rgba(52, 83, 214, 0.08);
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
}

.form-group .file-input::file-selector-button:hover {
    background: rgba(52, 83, 214, 0.16);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

/* Admin action buttons */
.action-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-form .cpe-input {
    width: 70px;
    text-align: center;
}

.action-form .btn-approve {
    background: var(--color-success);
}

.action-form .btn-approve:hover {
    background: #227853;
}

.action-form .btn-reject {
    background: var(--color-danger);
}

.action-form .btn-reject:hover {
    background: #a93238;
}

/* Auth pages */
.auth-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, rgba(52, 83, 214, 0.12), rgba(24, 169, 153, 0.12));
    padding: 40px 20px;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
    gap: 32px;
    align-items: stretch;
    max-width: 920px;
    width: 100%;
}

.auth-brand {
    background: var(--color-primary);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.auth-brand h1 {
    margin: 0;
    font-size: 2rem;
}

.auth-brand p {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
}

.auth-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(227, 231, 242, 0.9);
}

.auth-card h2 {
    margin: 0 0 12px;
}

.auth-card .message {
    margin-top: 12px;
}

.auth-footer {
    margin-top: 18px;
    text-align: center;
    font-size: 0.9rem;
}

/* activity Grid Layout */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 1.5rem;
}

.activity-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.activity-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.activity-card-header {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.activity-card-title-group {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.activity-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    line-height: 1.4;
}

.activity-card-meta {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.activity-card-body {
    flex: 1;
}

.activity-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.activity-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.activity-detail-label {
    font-size: 0.8rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.activity-detail-value {
    font-size: 0.95rem;
    color: var(--color-text);
    font-weight: 500;
}

.activity-card-footer {
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dropdown-item-form {
    margin: 0;
    padding: 0;
}

.dropdown-item-form .dropdown-item {
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item-form .dropdown-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dropdown-menu.compact-actions {
    min-width: 210px;
    padding: 0.35rem;
    font-size: 0.8rem;
}

.dropdown-menu.compact-actions .dropdown-divider {
    margin: 0.35rem 0;
}

.dropdown-menu.compact-actions .btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.72rem;
}

.dropdown-menu.compact-evidence-actions {
    min-width: 230px;
    padding: 0.35rem;
    font-size: 0.78rem;
}

.dropdown-menu.compact-evidence-actions .dropdown-divider {
    margin: 0.35rem 0;
}

.dropdown-menu.compact-evidence-actions .evidence-action-header {
    padding: 0.4rem 0.6rem;
}

.dropdown-menu.compact-evidence-actions .evidence-action-form {
    padding: 0.35rem 0.6rem;
}

.dropdown-menu.compact-evidence-actions .form-control {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.dropdown-menu.compact-evidence-actions .btn {
    padding: 0.32rem 0.5rem;
    font-size: 0.72rem;
}

.toast-notice {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid transparent;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
    z-index: 2000;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-notice.toast-success {
    background: #dff3ea;
    border-color: #2f855a;
    color: #1f4d39;
}

.toast-notice.toast-error {
    background: #fde8e8;
    border-color: #c53030;
    color: #742a2a;
}

.toast-notice .toast-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.toast-notice.toast-hide {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 58px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e2e8f0;
    border-radius: 999px;
    transition: background 0.2s ease;
    box-shadow: inset 0 0 0 1px #cbd5f5;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    top: 4px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: #3b82f6;
    box-shadow: none;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(28px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(89, 197, 255, 0.35);
}

.calendar-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.calendar-badge.enabled {
    background: #dbeafe;
    color: #1d4ed8;
}

.calendar-badge.disabled {
    background: #e2e8f0;
    color: #475569;
}

.compliance-card__content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.compliance-chart {
    --progress: 0%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#3b82f6 var(--progress), #e2e8f0 0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.compliance-chart.is-warning {
    background: conic-gradient(#ef4444 var(--progress), #fee2e2 0);
}

.compliance-chart.is-compliant {
    background: conic-gradient(#10b981 var(--progress), #dcfce7 0);
}

.compliance-chart__inner {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
    text-align: center;
}

.compliance-chart__value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
}

.compliance-chart__label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.compliance-info {
    flex: 1;
    min-width: 220px;
}

@media (max-width: 768px) {
    .toast-notice {
        left: 1rem;
        right: 1rem;
    }
}

@media (max-width: 1200px) {
    .activity-grid {
        grid-template-columns: 1fr;
    }
    
    .activity-detail-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* ====================================
   MOBILE RESPONSIVE STYLES
   ==================================== */

/* Tablet and below - Additional mobile styles */
@media (max-width: 992px) {
    .sidebar-brand {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
    }

    .sidebar-logo,
    .brand-logo {
        max-width: 120px;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: column;
    }
    
    .topbar .flex-grow-1 {
        flex: 1;
        min-width: 0;
    }
    
    .topbar .eyebrow {
        font-size: 0.65rem !important;
        margin-bottom: 0.15rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .topbar h1 {
        font-size: 1.1rem !important;
        margin: 0 !important;
        line-height: 1.3;
    }
    
    .topbar .ms-auto {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    .topbar #menuToggle {
        padding: 0.25rem !important;
        margin: 0 !important;
        flex-shrink: 0;
    }

    .page-intro {
        flex-direction: column;
        gap: 1rem;
    }

    .page-intro__actions {
        flex-direction: column;
        width: 100%;
    }

    .page-intro__actions .btn {
        width: 100%;
        text-align: center;
    }

    /* Stats grid responsive */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Activity grid */
    .activity-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Mobile phones */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .eyebrow {
        font-size: 0.7rem;
    }
    
    .topbar {
        padding: 0.875rem !important;
    }
    
    .topbar .eyebrow {
        font-size: 0.6rem !important;
    }
    
    .topbar h1 {
        font-size: 1rem !important;
    }
    
    .topbar .btn-sm {
        padding: 0.375rem 0.625rem;
        font-size: 0.8rem;
    }

    .card {
        padding: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    /* Compact buttons on mobile */
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }

    .btn-sm {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    /* Activity card improvements */
    .activity-card {
        padding: 1rem;
    }
    
    .activity-card-title {
        font-size: 1.05rem;
    }

    .activity-card-header h3 {
        font-size: 1.1rem;
    }

    .activity-card-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .activity-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .activity-card-footer > div {
        width: 100%;
    }
    
    .activity-card-footer form {
        width: 100%;
    }
    
    .activity-card-footer .btn {
        width: 100%;
    }
    
    .activity-detail-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .activity-detail-item {
        gap: 0.25rem;
    }
    
    .activity-detail-label {
        font-size: 0.75rem;
    }
    
    .activity-detail-value {
        font-size: 0.875rem;
    }

    /* Form improvements */
    .form-control {
        font-size: 0.9rem;
    }

    .form-label {
        font-size: 0.85rem;
    }
    
    /* Dashboard grid mobile */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-card {
        padding: 1.25rem;
    }
    
    .cpe-points-display {
        font-size: 2.25rem;
    }
}

/* Mobile Card Layout for Tables */
@media (max-width: 992px) {
    /* History page mobile cards */
    .history-mobile-card {
        display: block;
        background: var(--color-surface);
        border-radius: var(--radius-lg);
        padding: 1.25rem;
        margin-bottom: 1.25rem;
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--color-border);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .history-mobile-card:active {
        transform: scale(0.98);
    }

    .history-mobile-card-header {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid var(--color-border);
    }

    .history-mobile-card-title {
        font-weight: 700;
        color: var(--color-text);
        font-size: 1.15rem;
        margin: 0;
        line-height: 1.4;
    }
    
    .history-mobile-card-header .status-badge {
        align-self: flex-start;
        margin: 0;
    }

    .history-mobile-card-body {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .history-mobile-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(227, 232, 240, 0.5);
    }
    
    .history-mobile-row:last-child {
        border-bottom: none;
    }

    .history-mobile-label {
        font-size: 0.75rem;
        color: var(--color-muted);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        flex-shrink: 0;
        min-width: 80px;
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }
    
    .history-mobile-label i {
        font-size: 0.9rem;
        opacity: 0.7;
    }

    .history-mobile-value {
        font-size: 0.95rem;
        color: var(--color-text);
        font-weight: 500;
        text-align: right;
        flex: 1;
    }

    .history-mobile-card-footer {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 2px solid var(--color-border);
        display: flex;
        justify-content: stretch;
    }

    .history-mobile-card-footer .btn {
        width: 100%;
        justify-content: center;
        font-weight: 600;
    }

    /* Profile form mobile */
    .profile-form-group {
        margin-bottom: 1rem;
    }
    
    /* Profile picture preview mobile */
    .form-container img {
        max-width: 120px;
        height: 120px;
    }
    
    /* Form columns to stack */
    .form-container .row {
        margin: 0;
    }
    
    .form-container .col-md-6,
    .form-container .col-md-4,
    .form-container .col-md-8 {
        padding: 0;
        margin-bottom: 1rem;
    }

    /* Upload evidence tabs mobile */
    .nav-tabs {
        flex-direction: column;
        border-bottom: none;
    }

    .nav-tabs .nav-link {
        border-radius: var(--radius-sm);
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .nav-tabs .nav-link.active {
        border: 2px solid var(--color-primary);
    }

    /* Dashboard welcome card */
    .welcome-card {
        padding: 1.5rem 1rem;
    }

    .welcome-card h1 {
        font-size: 1.5rem;
    }

    /* Admin table mobile - force horizontal scroll */
    .admin-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table-wrapper table {
        min-width: 800px;
    }
    
    /* Calendar mobile responsive */
    .fc-toolbar {
        flex-direction: column !important;
        gap: 0.75rem;
    }
    
    .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .fc-toolbar-title {
        font-size: 1.1rem !important;
    }
    
    .fc-button {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.85rem !important;
    }
    
    .fc-daygrid-day-number {
        font-size: 0.85rem;
    }
    
    .fc-event-title {
        font-size: 0.75rem;
    }
}

/* Extra small phones */
@media (max-width: 576px) {
    .app-shell {
        padding: 0;
    }

    .main-content {
        padding: 1rem 0.75rem;
    }

    .card {
        padding: 0.875rem;
        border-radius: var(--radius-sm);
    }

    .page-title {
        font-size: 1.25rem;
    }
    
    .topbar {
        padding: 0.75rem !important;
        gap: 0.5rem;
    }
    
    .topbar .eyebrow {
        font-size: 0.55rem !important;
    }
    
    .topbar h1 {
        font-size: 0.95rem !important;
    }
    
    .topbar .ms-auto {
        gap: 0.375rem;
    }
    
    .topbar .ms-auto > div:first-child {
        width: 32px;
        height: 32px;
    }
    
    .topbar .btn-sm {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }

    /* FIX 1: Smaller, better-proportioned buttons on mobile */
    .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
        font-weight: 500;
        line-height: 1.4;
    }

    .btn-sm {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.8rem !important;
    }

    .btn-lg {
        padding: 0.625rem 1.25rem !important;
        font-size: 0.95rem !important;
    }

    /* Action buttons - not full width, center aligned */
    .page-intro__actions {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 0.75rem;
    }
    
    .page-intro__actions .btn {
        width: auto !important;
        min-width: 200px;
        max-width: 100%;
        padding: 0.5rem 1.25rem !important;
        font-size: 0.875rem !important;
    }

    .activity-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .activity-card-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .activity-card-footer .btn {
        width: 100%;
        padding: 0.5rem 0.875rem !important;
        font-size: 0.85rem !important;
    }
    
    .activity-card-footer > div {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .activity-card-footer > div > form {
        width: 100%;
    }
    
    .activity-card-title-group {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .activity-card {
        padding: 0.875rem;
    }
    
    .activity-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Compact status badges */
    .status-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    /* Form groups stacked */
    .row.g-3 {
        gap: 0.75rem !important;
    }

    .col-md-6 {
        width: 100%;
    }
    
    .badge-soft {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .cpe-points-display {
        font-size: 2rem;
    }

    /* FIX 2: Horizontal scroll for tables on mobile */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
        border-radius: var(--radius-sm);
        box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    }

    .table-responsive table {
        display: table !important;
        min-width: 600px;
        margin-bottom: 0;
    }

    .table-responsive th,
    .table-responsive td {
        white-space: nowrap;
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
    }

    .table-responsive th {
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.025em;
    }
}

/* Landscape phone optimization */
@media (max-width: 992px) and (orientation: landscape) {
    .sidebar {
        position: relative;
    }

    .main-content {
        min-height: auto;
    }
}

/* Print styles */
@media print {
    .sidebar,
    .btn,
    .page-intro__actions {
        display: none;
    }

    .main-content {
        width: 100%;
        box-shadow: none;
    }

    .table-responsive {
        overflow: visible;
    }
}

