:root {
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-bg-dark: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --glass-blur: blur(12px);
    --primary-glass: #21417A;
    --accent-blue: #4e73df;
    --text-light: #ffffff;
    --text-dark: #2c3e50;
    --gradient-start: #0f0c29;
    --gradient-mid: #302b63;
    --gradient-end: #24243e;
}

body {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
    min-height: 100vh;
    font-family: 'Nunito', sans-serif;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    padding: 1.5rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
}

.glass-card-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    padding: 1.5rem;
    color: var(--text-light);
}

.glass-navbar {
    background: rgba(33, 65, 122, 0.8) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.glass-sidebar {
    background: rgba(33, 65, 122, 0.85) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: var(--glass-blur);
    color: var(--text-light) !important;
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25) !important;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.glass-input option {
    background: #302b63;
    color: white;
}

.glass-btn {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 600;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(78, 115, 223, 0.3);
    color: white;
}

.glass-btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), #224abe);
    border: none;
    color: white;
}

.glass-btn-primary:hover {
    background: linear-gradient(135deg, #224abe, #1a3a8a);
    box-shadow: 0 4px 15px rgba(78, 115, 223, 0.4);
    color: white;
}

.glass-btn-success {
    background: linear-gradient(135deg, #1cc88a, #169a6e);
    border: none;
    color: white;
}

.glass-btn-danger {
    background: linear-gradient(135deg, #e74a3b, #c0392b);
    border: none;
    color: white;
}

.glass-btn-warning {
    background: linear-gradient(135deg, #f6c23e, #d4a72c);
    border: none;
    color: #2c3e50;
}

.glass-table {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}

.glass-table table {
    margin-bottom: 0;
    color: var(--text-light);
}

.glass-table th {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.glass-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.glass-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

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

.glass-alert {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-light);
}

.glass-modal-content {
    background: rgba(33, 65, 122, 0.95);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: var(--text-light);
}

.glass-modal-content .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-modal-content .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-modal-content .close {
    color: var(--text-light);
    text-shadow: none;
}

.glass-badge {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.glass-progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.glass-progress .progress-bar {
    background: linear-gradient(90deg, var(--accent-blue), #1cc88a);
}

.glass-dropdown {
    background: rgba(33, 65, 122, 0.95);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}

.glass-dropdown .dropdown-item {
    color: var(--text-light);
    padding: 0.5rem 1.25rem;
    transition: all 0.2s;
}

.glass-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.glass-dropdown .dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-pagination .page-link {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    border-radius: 8px !important;
    margin: 0 2px;
    transition: all 0.2s;
}

.glass-pagination .page-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.glass-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--accent-blue), #224abe);
    border-color: transparent;
}

.glass-pagination .page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
}

.glass-tabs .nav-link {
    color: rgba(255, 255, 255, 0.6);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    transition: all 0.2s;
}

.glass-tabs .nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.glass-tabs .nav-link.active {
    color: white;
    background: linear-gradient(135deg, var(--accent-blue), #224abe);
}

.glass-stat-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.glass-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(31, 38, 135, 0.2);
}

.glass-stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
}

.glass-stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
}

.glass-stat-card .stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    color: var(--text-light);
}

.auth-card-wide {
    max-width: 900px;
}

.auth-card .auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card .auth-logo i {
    font-size: 3rem;
    color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 50%;
}

.auth-card .auth-logo h2 {
    font-weight: 800;
    margin-top: 1rem;
    font-size: 1.5rem;
}

.auth-card .auth-logo p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.glass-nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    position: relative;
}

.glass-nav-tabs .nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.glass-nav-tabs .nav-link.active {
    color: white;
    background: transparent;
}

.glass-nav-tabs .nav-link.active::after {
    transform: scaleX(1);
}

.glass-nav-tabs .nav-link:hover {
    color: white;
    border: none;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    pointer-events: none;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    color: white;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(31, 38, 135, 0.3);
}

.feature-card .feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--accent-blue), #224abe);
    color: white;
}

.form-section {
    background: var(--glass-bg-dark);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section h5 {
    color: #fff !important;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reminder-banner {
    background: linear-gradient(135deg, rgba(246, 194, 62, 0.2), rgba(231, 74, 59, 0.2));
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(246, 194, 62, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reminder-banner i {
    font-size: 1.5rem;
    color: #f6c23e;
}

.profile-complete-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-blue) var(--pct, 0%), rgba(255,255,255,0.1) var(--pct, 0%));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.profile-complete-ring::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-mid);
}

.profile-complete-ring .pct-text {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s;
}

.btn-icon:hover {
    transform: scale(1.1);
}

.glass-footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Fix for SB Admin 2 compatibility */
.topbar { background: var(--glass-navbar-bg, rgba(255,255,255,0.1)) !important; backdrop-filter: blur(12px) !important; border-bottom: 1px solid rgba(255,255,255,0.1) !important; }
.sidebar { background: rgba(33, 65, 122, 0.85) !important; backdrop-filter: blur(12px) !important; }
.sidebar-dark .nav-item .nav-link { color: rgba(255,255,255,0.7) !important; }
.sidebar-dark .nav-item .nav-link:hover { color: white !important; background: rgba(255,255,255,0.1) !important; }
.sidebar-dark .nav-item.active .nav-link { color: white !important; background: rgba(255,255,255,0.15) !important; }
.sidebar-dark .sidebar-brand { color: white !important; }
.sidebar .sidebar-divider { border-top: 1px solid rgba(255,255,255,0.1); }
.sidebar-dark .sidebar-heading { color: rgba(255,255,255,0.4) !important; }
.card { background: var(--glass-bg) !important; backdrop-filter: blur(12px) !important; border: 1px solid rgba(255,255,255,0.15) !important; border-radius: 16px !important; color: white !important; }
.card-header { background: rgba(255,255,255,0.05) !important; border-bottom: 1px solid rgba(255,255,255,0.1) !important; color: white !important; }
.card-footer { background: rgba(255,255,255,0.05) !important; border-top: 1px solid rgba(255,255,255,0.1) !important; }
.text-gray-600, .text-gray-500, .text-gray-700, .text-gray-800 { color: rgba(255,255,255,0.7) !important; }
.text-gray-300 { color: rgba(255,255,255,0.3) !important; }
.bg-white { background: rgba(255,255,255,0.1) !important; }
.shadow { box-shadow: 0 4px 20px rgba(0,0,0,0.2) !important; }
.border-left-primary { border-left: 4px solid var(--accent-blue) !important; }
.border-left-success { border-left: 4px solid #1cc88a !important; }
.border-left-info { border-left: 4px solid #36b9cc !important; }
.border-left-warning { border-left: 4px solid #f6c23e !important; }
.table { color: white !important; }
.table thead th { border-bottom: 1px solid rgba(255,255,255,0.1) !important; color: rgba(255,255,255,0.7) !important; }
.table td, .table th { border-top: 1px solid rgba(255,255,255,0.05) !important; }
.form-control { background: rgba(255,255,255,0.1) !important; border: 1px solid rgba(255,255,255,0.2) !important; color: white !important; }
.form-control:focus { background: rgba(255,255,255,0.15) !important; border-color: var(--accent-blue) !important; box-shadow: 0 0 0 0.2rem rgba(78,115,223,0.25) !important; color: white !important; }
.form-control::placeholder { color: rgba(255,255,255,0.4) !important; }
select.form-control option { background: #302b63; color: white; }
.page-link { background: rgba(255,255,255,0.1) !important; border-color: rgba(255,255,255,0.15) !important; color: white !important; }
.page-link:hover { background: rgba(255,255,255,0.2) !important; color: white !important; }
.page-item.active .page-link { background: var(--accent-blue) !important; border-color: var(--accent-blue) !important; }
.page-item.disabled .page-link { background: rgba(255,255,255,0.05) !important; color: rgba(255,255,255,0.3) !important; }
.dropdown-menu { background: rgba(33, 65, 122, 0.95) !important; backdrop-filter: blur(12px) !important; border: 1px solid rgba(255,255,255,0.15) !important; border-radius: 12px !important; }
.dropdown-item { color: rgba(255,255,255,0.8) !important; }
.dropdown-item:hover { background: rgba(255,255,255,0.1) !important; color: white !important; }
.dropdown-header { color: rgba(255,255,255,0.5) !important; }
.dropdown-divider { border-top: 1px solid rgba(255,255,255,0.1) !important; }
.modal-content { background: rgba(33, 65, 122, 0.95) !important; backdrop-filter: blur(12px) !important; border: 1px solid rgba(255,255,255,0.2) !important; border-radius: 16px !important; color: white !important; }
.modal-header, .modal-footer { border-color: rgba(255,255,255,0.1) !important; }
.modal-header .close { color: white !important; text-shadow: none !important; }
.badge-primary { background: linear-gradient(135deg, var(--accent-blue), #224abe) !important; }
.badge-success { background: linear-gradient(135deg, #1cc88a, #169a6e) !important; }
.badge-danger { background: linear-gradient(135deg, #e74a3b, #c0392b) !important; }
.badge-warning { background: linear-gradient(135deg, #f6c23e, #d4a72c) !important; color: #2c3e50 !important; }
.badge-info { background: linear-gradient(135deg, #36b9cc, #258391) !important; }
.btn-primary { background: linear-gradient(135deg, var(--accent-blue), #224abe) !important; border: none !important; border-radius: 10px !important; }
.btn-primary:hover { background: linear-gradient(135deg, #224abe, #1a3a8a) !important; box-shadow: 0 4px 15px rgba(78,115,223,0.4) !important; }
.btn-success { background: linear-gradient(135deg, #1cc88a, #169a6e) !important; border: none !important; border-radius: 10px !important; }
.btn-danger { background: linear-gradient(135deg, #e74a3b, #c0392b) !important; border: none !important; border-radius: 10px !important; }
.btn-warning { background: linear-gradient(135deg, #f6c23e, #d4a72c) !important; border: none !important; border-radius: 10px !important; color: #2c3e50 !important; }
.btn-outline-light { border-radius: 10px !important; }
.alert { background: var(--glass-bg) !important; backdrop-filter: blur(12px) !important; border: 1px solid rgba(255,255,255,0.15) !important; border-radius: 12px !important; color: white !important; }
.alert-success { border-left: 4px solid #1cc88a !important; }
.alert-danger { border-left: 4px solid #e74a3b !important; }
.alert-warning { border-left: 4px solid #f6c23e !important; }
.alert-info { border-left: 4px solid #36b9cc !important; }
a { color: #6ea8fe !important; }
a:hover { color: #8bb9fe !important; }
footer.sticky-footer { background: rgba(0,0,0,0.3) !important; backdrop-filter: blur(12px) !important; border-top: 1px solid rgba(255,255,255,0.1) !important; }
.scroll-to-top { background: var(--accent-blue) !important; color: white !important; }
.bg-gradient-primary { background: linear-gradient(180deg, rgba(33,65,122,0.9) 0%, rgba(15,12,41,0.9) 100%) !important; }
.navbar-light .navbar-brand { color: white !important; }
.navbar-light .navbar-brand:focus, .navbar-light .navbar-brand:hover { color: white !important; }
