@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* 1. Core Palette */
    --primary-color: #02a8f2;
    --primary-light: #e6f6fe;
    --primary-dark: #018bc9;
    --bg-color: #fbfbfc;
    --text-main: #1a1a1a;
    --text-muted: #6c757d;
    --white: #ffffff;

    /* 2. Layout & Spacing */
    --sidebar-width: 280px;
    --sidebar-bg: #ffffff;
    --sidebar-border: rgba(0, 0, 0, 0.06);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* 3. Navigation Tokens */
    --nav-text: #344054;
    --nav-text-hover: #101828;
    --nav-active-bg: #f0f9ff;
    --nav-active-text: #00a8ff;
    --nav-icon: #667085;
    --nav-icon-active: #00a8ff;

    /* 4. Border Radius System */
    --radius-extreme: 40px;
    --radius-premium: 28px;
    --radius-md: 18px;
    --radius-sm: 10px;

    /* 5. Elevation & Glassmorphism */
    --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 25px 50px rgba(2, 168, 242, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(10px);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border) !important;
}

.shadow-premium {
    box-shadow: var(--shadow-premium) !important;
}

.shadow-hover-shift:hover {
    box-shadow: var(--shadow-hover) !important;
    transform: translateY(-3px);
    transition: var(--transition-smooth);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Layout */
.wrapper {
    display: flex;
    min-height: 100vh;
}


#sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

#sidebar.active {
    margin-left: calc(-1 * var(--sidebar-width));
}

#content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 32px 40px;
    transition: var(--transition-smooth);
    min-width: 0;
}

.sidebar-header {
    padding: 32px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 16px;
    margin-top: 8px;
}

.sidebar-footer {
    padding: 24px 16px;
    border-top: 1px solid var(--sidebar-border);
    margin-top: auto;
}

/* Nav Item */
.nav-item-v2 {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    margin-bottom: 6px;
    border-radius: var(--radius-sm);
    color: var(--nav-text);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.nav-item-v2 i {
    width: 24px;
    font-size: 1.15rem;
    margin-right: 12px;
    color: var(--nav-icon);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item-v2:hover {
    background: #f9fafb;
    color: var(--nav-text-hover);
    border-color: rgba(0, 0, 0, 0.02);
}

.nav-item-v2:hover i {
    color: #475467;
}

/* Logout Specific State */
.logout-item {
    color: #667085 !important;
}

.logout-item:hover {
    background: #fff1f2 !important;
    color: #e11d48 !important;
    border-color: #ffe4e6 !important;
}

.logout-item:hover i {
    color: #e11d48 !important;
}

.nav-item-v2.active {
    background: var(--nav-active-bg);
    color: var(--nav-active-text) !important;
    border-color: rgba(0, 168, 255, 0.1);
}

.nav-item-v2.active i {
    color: var(--nav-icon-active) !important;
}

/* Dropdown Sophistication */
.nav-dropdown-trigger {
    cursor: pointer;
    justify-content: space-between !important;
}

.nav-dropdown-trigger .trigger-content {
    display: flex;
    align-items: center;
    gap: 0;
    /* Handled by icon margin */
}

.chevron-icon {
    font-size: 0.75rem;
    opacity: 0.4;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item-v2.expanded .chevron-icon {
    transform: rotate(90deg);
    opacity: 0.8;
}

.nav-dropdown-content {
    display: none;
    padding-left: 20px;
    margin-left: 24px;
    margin-bottom: 12px;
    border-left: 1px solid rgba(0, 168, 255, 0.1);
}

.nav-item-v2.expanded+.nav-dropdown-content {
    display: block;
}

.sub-nav-item {
    padding: 8px 16px;
    display: block;
    color: #667085;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    margin-top: 2px;
}

.sub-nav-item:hover {
    background: #f9fafb;
    color: var(--nav-active-text);
    padding-left: 20px;
}

.sub-nav-item.active {
    color: var(--nav-active-text);
    font-weight: 700;
    background: var(--nav-active-bg);
}

/* Welcome Banner  */
.welcome-banner {
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), url('../img/welcome.png');
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    padding: 32px 48px;
    color: #101828;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 30px rgba(0, 168, 255, 0.04);
    border: 1px solid rgba(0, 168, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.welcome-content {
    flex: 1;
    z-index: 2;
}

.welcome-illustration {
    flex: 0 0 220px;
    display: flex;
    justify-content: flex-end;
    z-index: 2;
}

.welcome-illustration img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 168, 255, 0.08));
}

.welcome-banner .greeting-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -1.5px;
    color: #101828;
    text-shadow: none;
}

.welcome-banner .sub-text {
    font-size: 1rem;
    color: #475467;
    opacity: 1;
    font-weight: 500;
    margin-bottom: 0;
    max-width: 500px;
}

.welcome-banner .btn-welcome {
    background: var(--nav-active-text);
    color: white;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
}

.welcome-banner .btn-welcome:hover {
    background: #0086cc;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 168, 255, 0.25);
}


.nav-group-label {
    padding: 24px 12px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #98a2b3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    z-index: 1040;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

.fintech-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

/* Elite Gradients Tint"  */
.card-blue {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.card-purple {
    background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
}

.card-orange {
    background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
}

.card-green {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.fintech-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: none;
    pointer-events: none;
}

.fintech-card:hover::after {
    animation: fintech-shimmer 0.8s ease-out;
}

@keyframes fintech-shimmer {
    100% {
        left: 200%;
    }
}

.fintech-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Hybrid Decorations */
.stat-decoration {
    position: absolute;
    bottom: -15px;
    right: -15px;
    font-size: 6rem;
    opacity: 0.05;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 0;
}

.fintech-card:hover .stat-decoration {
    transform: scale(1.15) rotate(-8deg);
    opacity: 0.08;
    filter: blur(1px);
}

.card-blue:hover {
    box-shadow: 0 25px 50px rgba(2, 168, 242, 0.18), 0 0 15px rgba(2, 168, 242, 0.08);
}

.card-purple:hover {
    box-shadow: 0 25px 50px rgba(156, 39, 176, 0.18), 0 0 15px rgba(156, 39, 176, 0.08);
}

.card-orange:hover {
    box-shadow: 0 25px 50px rgba(243, 156, 18, 0.18), 0 0 15px rgba(243, 156, 18, 0.08);
}

.card-green:hover {
    box-shadow: 0 25px 50px rgba(39, 174, 96, 0.18), 0 0 15px rgba(39, 174, 96, 0.08);
}

.fintech-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.fintech-title {
    font-size: 0.68rem;
    font-weight: 900;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 1;
}

.grad-blue {
    background: linear-gradient(135deg, #02a8f2 0%, #018bc9 100%);
}

.grad-purple {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}

.grad-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.grad-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.inline-icon {
    font-size: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.fintech-value {
    font-size: 2.2rem;
    font-weight: 900;
    color: #1e293b;
    letter-spacing: -2.5px;
    margin-bottom: 12px;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.fintech-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.fintech-status-chip {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-stable {
    background: #f1f5f9;
    color: #64748b;
}

.status-up {
    background: #dcfce7;
    color: #166534;
}

.status-down {
    background: #fee2e2;
    color: #991b1b;
}

.status-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
}

.fintech-table-wrapper {
    background: var(--white);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
    overflow: visible !important; /* Allow dropdowns to pop out */
    position: relative;
}

/* Fix child corner clipping for top element */
.fintech-table-wrapper > :first-child {
    border-top-left-radius: 24px !important;
    border-top-right-radius: 24px !important;
}

/* Fix child corner clipping for bottom element */
.fintech-table-wrapper > :last-child {
    border-bottom-left-radius: 24px !important;
    border-bottom-right-radius: 24px !important;
}

.fintech-table-header {
    padding: 24px 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 768px) {
    .fintech-table-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .assessment-tab-btn {
        padding: 6px 12px !important;
        font-size: 0.65rem !important;
    }
}

.fintech-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.fintech-table th {
    background: #fcfdfe;
    padding: 16px 32px;
    font-size: 0.68rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
}

.fintech-table td {
    padding: 18px 32px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    color: #1e293b;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.fintech-table tr:last-child td {
    border-bottom: none;
}

.fintech-table tr {
    transition: all 0.3s ease;
}

.fintech-table tr:hover td {
    background-color: #f8fafc;
}

.fintech-table tr.no-hover:hover td {
    background-color: transparent !important;
}

@media (max-width: 991px) {

    .fintech-table,
    .fintech-table thead,
    .fintech-table tbody,
    .fintech-table th,
    .fintech-table td,
    .fintech-table tr {
        display: block;
    }

    .fintech-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .fintech-table tr {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding: 20px 15px;
    }

    .fintech-table td {
        border: none;
        padding: 8px 15px !important;
        position: relative;
        padding-left: 50% !important;
        text-align: right;
    }

    .fintech-table td:before {
        position: absolute;
        top: 8px;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label);
        font-weight: 800;
        text-align: left;
        color: #64748b;
        font-size: 0.7rem;
        text-transform: uppercase;
    }

    .fintech-table tr {
        position: relative;
    }

    .fintech-table td:first-child {
        padding-left: 15px !important;
        padding-right: 50px !important;
        /* Make room for the absolute menu */
        text-align: left;
        background: #f8fafc;
        border-radius: 12px;
        margin-bottom: 15px;
    }

    .fintech-table td:first-child:before {
        display: none;
    }

    /* Target cells with dropdown menus (3-dots) */
    .fintech-table td:last-child:has(.dropdown),
    .fintech-table td:last-child:has(.premium-action-btn) {
        position: absolute;
        top: 28px;
        right: 25px;
        padding: 0 !important;
        width: auto !important;
        background: transparent !important;
        text-align: right !important;
        z-index: 10;
        margin: 0 !important;
    }

    .fintech-table td:last-child:has(.dropdown):before,
    .fintech-table td:last-child:has(.premium-action-btn):before {
        display: none !important;
    }

    .fintech-table td:last-child {
        text-align: center;
        padding-left: 15px !important;
        padding-top: 20px !important;
    }

    .fintech-table td:last-child:before {
        display: none;
    }

    .fintech-table td:last-child .btn {
        width: 100%;
        margin-top: 10px;
    }

    .student-identity {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Student Identity Components */
.student-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.student-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-weight: 800;
    font-size: 0.75rem;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.student-info-meta {
    display: flex;
    flex-direction: column;
}

.student-primary-name {
    font-weight: 800;
    color: #0f172a;
    font-size: 0.88rem;
}

.student-secondary-id {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
}

.premium-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.premium-action-btn:hover {
    background-color: #f8fafc;
    border-color: rgba(0, 168, 255, 0.2);
    color: #00a8ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.premium-action-btn.show,
.premium-action-btn:active {
    background-color: #00a8ff !important;
    border-color: #00a8ff !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.25);
}

/* Dropdown Engine */
.dropdown-menu {
    border-radius: 14px !important;
    padding: 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    animation: dropdownEntrance 0.28s cubic-bezier(0.24, 0.22, 0.31, 1.07);
    transform-origin: top right;
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    transform: rotate(45deg);
    z-index: -1;
}

@keyframes dropdownEntrance {
    from {
        opacity: 0;
        scale: 0.98;
    }

    to {
        opacity: 1;
        scale: 1;
    }
}

.dropdown-item {
    border-radius: 8px !important;
    padding: 10px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.dropdown-item i {
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.dropdown-item:hover {
    background-color: #f1f8ff !important;
    color: #00a8ff !important;
    transform: translateX(4px);
}

.dropdown-item.text-danger:hover {
    background-color: #fff1f2 !important;
    color: #e11d48 !important;
}

.dropdown-divider {
    margin: 8px 0 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    opacity: 1 !important;
}



.fintech-status-pill {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: capitalize;
}

/* Search & Input Component */
.premium-search-wrapper {
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 0 18px;
    min-height: 38px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.premium-search-wrapper.w-100 {
    max-width: none !important;
}

.premium-search-wrapper:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.premium-search-wrapper:focus-within {
    background: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(2, 168, 242, 0.12) !important;
}

.premium-search-icon {
    font-size: 0.9rem;
    color: #64748b;
    transition: all 0.3s ease;
}

.premium-search-wrapper:focus-within .premium-search-icon {
    color: var(--primary-color);
}

.premium-search-input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 8px 0 !important;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    width: 100%;
}

.premium-search-input:focus,
.premium-search-input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.premium-search-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.pill-active {
    background: #dcfce7;
    color: #166534;
}

.pill-inactive {
    background: #f1f5f9;
    color: #475569;
}

.bento-activity-card {
    border-radius: var(--radius-extreme);
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    position: relative;
}

.bento-activity-card>div:first-child {
    border-top-left-radius: var(--radius-extreme);
    border-top-right-radius: var(--radius-extreme);
}

.bento-activity-card>div:last-child {
    border-bottom-left-radius: var(--radius-extreme);
    border-bottom-right-radius: var(--radius-extreme);
}

.activity-item-bento {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: background 0.2s ease;
}

.hover-shift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-shift:hover {
    transform: translateX(5px);
    background-color: #f8fbff !important;
    border-color: var(--primary-color) !important;
}

.activity-item-bento:last-child {
    border-bottom: none;
}



.bento-stat-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08) !important;
}

.icon-box-lg {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
}

.activity-item-bento:hover {
    background: #fcfdfe !important;
    transform: translateY(-5px) translateX(5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-color) !important;
    z-index: 10;
    position: relative;
    will-change: transform;
}



.rounded-extreme {
    border-radius: var(--radius-extreme) !important;
}

.letter-spacing-n1 {
    letter-spacing: -1px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #27ae60;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(39, 174, 96, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

.rounded-premium {
    border-radius: 12px !important;
}





.rounded-sm {
    border-radius: 6px !important;
}

@media (max-width: 992px) {
    #sidebarCollapse {
        display: flex !important;
    }

    #sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }

    #sidebar.active {
        margin-left: 0;
        box-shadow: 30px 0 60px rgba(0, 0, 0, 0.15);
    }

    #content {
        margin-left: 0 !important;
        padding: 24px !important;
    }

    /* Overlay for mobile */
    .sidebar-overlay {
        display: none;
        position: fixed;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.3);
        z-index: 1040;
        backdrop-filter: blur(4px);
    }

    .sidebar-overlay.active {
        display: block;
    }
}

.user-profile img {
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

/* Text Colors */
.text-dark {
    color: var(--text-main) !important;
}

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

/* Student Exam Interface */
.exam-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1040;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.question-card {
    border-radius: var(--radius-extreme) !important;
    margin-bottom: 40px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.option-item {
    background: #f8faff;
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 20px 25px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.option-item:hover {
    background: #fff;
    border-color: #e6f6fe;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(2, 168, 242, 0.08);
}

.option-item input[type="radio"] {
    width: 22px;
    height: 22px;
    margin-right: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.option-item.selected {
    background: #fff;
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(2, 168, 242, 0.12);
}

.exam-timer {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
}

.pulse-telemetry-lg {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(2, 168, 242, 0.4);
    animation: pulse-lg 2s infinite;
}

@keyframes pulse-lg {
    0% {
        box-shadow: 0 0 0 0 rgba(2, 168, 242, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(2, 168, 242, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(2, 168, 242, 0);
    }
}


.badge-logic {
    background: rgba(2, 168, 242, 0.08);
    color: #02a8f2;
    border: 1px solid rgba(2, 168, 242, 0.1);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-card {
    background: #fff;
    max-width: 600px;
    width: 90%;
    margin: 100px auto;
    padding: 60px;
    border-radius: 40px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
    font-size: 3rem;
    border: 4px solid #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.bg-primary-light {
    background-color: rgba(2, 168, 242, 0.08) !important;
}

.bg-warning-subtle {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.card,
.bento-activity-card,
.bento-stat-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.op-5 {
    opacity: 0.5;
}

/* Apex Profile */




.slot-glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-premium);
    padding: 24px;
    transition: var(--transition-smooth);
}

.slot-glass:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(2, 168, 242, 0.08);
}

.security-string {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    color: var(--text-main);
    letter-spacing: 3px;
    font-weight: 800;
}

.floating-avatar {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.badge-apex {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}



.hover-up-sm:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06) !important;
}

.hover-up:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

/* Modal System */
.premium-modal .modal-content {
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: visible !important; /* Fix for dropdown clipping */
    background: var(--white);
}

.premium-modal .modal-header {
    padding: 2.5rem 2.5rem 1rem;
    border-bottom: none !important;
}

.premium-modal .modal-body {
    padding: 1rem 2.5rem 2rem;
}

.premium-modal .modal-footer {
    padding: 1rem 2.5rem 2.5rem;
    border-top: none !important;
    gap: 12px;
}

.premium-modal .modal-title {
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -1px;
    font-size: 1.5rem;
}

.form-label-premium {
    font-size: 0.68rem;
    font-weight: 900;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
    display: block;
}

.form-control-premium {
    border-radius: var(--radius-sm) !important;
    padding: 0.85rem 1.25rem !important;
    border: 2px solid #ced4da !important;
    background: #f8faff !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.form-control-premium:focus {
    background: #fff !important;
    border-color: var(--primary-light) !important;
    box-shadow: 0 8px 20px rgba(2, 168, 242, 0.08) !important;
    color: var(--text-main) !important;
}

/* Premium Input Group */
.input-premium-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-premium-group:focus-within {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(2, 168, 242, 0.1) !important;
    background: #fff !important;
}

.input-premium-group .form-control {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

.input-premium-group .input-group-text {
    background: transparent !important;
    border: none !important;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.input-premium-group:focus-within .input-group-text {
    opacity: 1;
    color: var(--primary-color) !important;
}

.apex-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.apex-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #f8faff;
    border: 2px solid #ced4da;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-main);
    min-height: 58px;
}

.apex-select-wrapper.open .apex-select-trigger {
    background: #fff;
    border-color: var(--primary-light);
    box-shadow: 0 8px 20px rgba(2, 168, 242, 0.08);
}

.apex-select-trigger:after {
    content: "\f0d7";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.apex-select-wrapper.open .apex-select-trigger:after {
    transform: rotate(180deg);
}

.apex-select-options {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    z-index: 2100;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 250px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) transparent;
}

.apex-select-options::-webkit-scrollbar {
    width: 6px;
}

.apex-select-options::-webkit-scrollbar-track {
    background: transparent;
}

.apex-select-options::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

.apex-select-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.apex-select-wrapper.open .apex-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.apex-select-option {
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.apex-select-option:hover {
    background: #e7f1ff;
    color: #0d6efd;
    padding-left: 22px;
}

.apex-select-option.selected {
    background: #e7f1ff;
    color: #0d6efd;
    font-weight: 700;
}

.apex-select-search-wrapper {
    padding: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.apex-select-search {
    width: 100%;
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid #ced4da;
    background: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
    transition: all 0.2s ease;
}

.apex-select-search:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 4px 12px rgba(2, 168, 242, 0.08);
}

:focus-visible {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: 3px !important;
}

.form-control:focus,
.btn:focus {
    box-shadow: 0 0 0 4px rgba(2, 168, 242, 0.15) !important;
}



.form-select-premium {
    display: none !important;
}

.btn-premium-secondary {
    background: #f1f3f5;
    color: #495057;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 30px;
    font-weight: 800;
    font-size: 0.85rem;
}

.btn-premium-primary {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 30px;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 10px 20px rgba(2, 168, 242, 0.15);
}

.btn-premium-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(2, 168, 242, 0.25);
    color: #fff;
}

footer a {
    transition: all 0.3s ease;
    opacity: 0.8;
}

footer a:hover {
    opacity: 1;
    color: var(--primary-color) !important;
}

.dropdown-menu.shadow-premium {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
    padding: 12px !important;
}
