/* =============================================
   ADMIN WRAPPER
============================================= */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #0F172A 0%, #1e1b4b 50%, #0F172A 100%);
    position: relative;
}

.admin-wrapper::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(124,58,237,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(249,115,22,0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* =============================================
   SIDEBAR
============================================= */
.admin-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: rgba(15,23,42,0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid rgba(124,58,237,0.15);
    box-shadow: 8px 0 32px rgba(0,0,0,0.3), 0 0 80px rgba(124,58,237,0.1);
}

.admin-sidebar::-webkit-scrollbar {
    width: 6px;
}
.admin-sidebar::-webkit-scrollbar-track {
    background: rgba(15,23,42,0.8);
}
.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(124,58,237,0.3);
    border-radius: var(--radius-full);
}
.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(124,58,237,0.6);
}

.admin-sidebar.collapsed { width: 80px; }

.admin-sidebar.collapsed .sidebar-text,
.admin-sidebar.collapsed .sidebar-logo-text { display: none; }

.admin-sidebar.collapsed .sidebar-section-label {
    opacity: 0; padding: 0; height: 0; margin: 0; overflow: hidden;
}

.admin-sidebar.collapsed .sidebar-item a {
    justify-content: center; padding: 12px 0;
}

.admin-sidebar.collapsed .sidebar-logout {
    justify-content: center; padding: 12px 0;
}

.admin-sidebar.collapsed .sidebar-item a i,
.admin-sidebar.collapsed .sidebar-logout i { margin: 0; font-size: 1.1rem; }

.admin-sidebar.collapsed .sidebar-header { justify-content: center; padding: 0; }
.admin-sidebar.collapsed .sidebar-logo { justify-content: center; cursor: pointer; }
.admin-sidebar.collapsed .sidebar-logo-img, .admin-sidebar.collapsed .sidebar-logo-icon { margin-right: 0; }
.admin-sidebar.collapsed .sidebar-toggle-btn { display: none; }
.admin-sidebar.collapsed ~ .admin-content { margin-left: 80px; }

.sidebar-toggle-btn {
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.3);
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: auto;
}
.sidebar-toggle-btn:hover { 
    color: white; 
    background: rgba(124,58,237,0.25);
    border-color: rgba(124,58,237,0.5);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}

/* Sidebar header */
.sidebar-header {
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid rgba(124,58,237,0.2);
    flex-shrink: 0;
    gap: 12px;
    background: rgba(124,58,237,0.05);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.sidebar-logo-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, #7C3AED 0%, #F97316 100%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(124,58,237,0.5), inset 0 2px 4px rgba(255,255,255,0.3);
    border: 2px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    margin-right: 12px;
}

.sidebar-logo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
    opacity: 0.6;
}

.sidebar-logo-img {
    width: 44px; height: 44px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(124,58,237,0.5);
    border: 2px solid rgba(124,58,237,0.8);
    background: white;
    margin-right: 12px;
}

.sidebar-logo-text {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.3px;
}

/* Sidebar menu */
.sidebar-section-label {
    padding: 24px 20px 8px;
    font-size: 0.7rem;
    font-weight: 800;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1.8px;
    transition: all 0.3s ease;
}

.sidebar-menu {
    list-style: none;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.sidebar-item a i {
    width: 20px; text-align: center;
    font-size: 1rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar-item a:hover {
    background: rgba(124,58,237,0.15);
    color: rgba(255,255,255,0.95);
    border-color: rgba(124,58,237,0.3);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(124,58,237,0.15);
}

.sidebar-item a:hover i { opacity: 1; color: #7C3AED; }

.sidebar-item.active a {
    background: linear-gradient(135deg, rgba(124,58,237,0.25) 0%, rgba(249,115,22,0.15) 100%);
    color: white;
    font-weight: 700;
    border-color: rgba(124,58,237,0.4);
    box-shadow: 0 4px 16px rgba(124,58,237,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}

.sidebar-item.active a i { opacity: 1; color: #F97316; }

/* Sidebar footer */
.sidebar-footer {
    margin-top: auto;
    padding: 16px 12px;
    border-top: 1px solid rgba(124,58,237,0.2);
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(248,113,113,0.85);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.sidebar-logout:hover {
    background: rgba(239,68,68,0.15);
    color: #fca5a5;
    border-color: rgba(239,68,68,0.3);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(239,68,68,0.2);
}

/* =============================================
   MAIN CONTENT AREA
============================================= */
.admin-content {
    flex-grow: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

/* Admin top navbar */
.admin-navbar {
    height: 72px;
    background: rgba(15,23,42,0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(124,58,237,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15), 0 0 60px rgba(124,58,237,0.1);
}

.admin-nav-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.4px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-nav-title::before {
    content: '';
    display: block;
    width: 4px; height: 20px;
    background: linear-gradient(135deg, #7C3AED 0%, #F97316 100%);
    border-radius: var(--radius-full);
    box-shadow: 0 0 12px rgba(124,58,237,0.5);
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.3);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(124,58,237,0.2);
}

.admin-user-info:hover {
    background: rgba(124,58,237,0.25);
    border-color: rgba(124,58,237,0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124,58,237,0.3);
}

.admin-body {
    padding: 32px 32px;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

/* =============================================
   STATS GRID
============================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 0 60px rgba(124,58,237,0.1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7C3AED 0%, #F97316 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.stat-card:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 80px rgba(124,58,237,0.2);
    border-color: rgba(124,58,237,0.4);
}
.stat-card:hover::before { transform: scaleX(1); }
.stat-card:hover::after { opacity: 1; }

.stat-info h3 {
    font-size: 0.75rem;
    font-weight: 800;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.stat-info p {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    color: white;
    letter-spacing: -1.5px;
    line-height: 1;
    text-shadow: 0 0 30px rgba(124,58,237,0.3);
}

.stat-icon {
    width: 60px; height: 60px;
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.stat-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
}

.stat-purple { 
    background: linear-gradient(135deg, rgba(124,58,237,0.2) 0%, rgba(124,58,237,0.1) 100%); 
    color: #7c3aed; 
    border: 1px solid rgba(124,58,237,0.3);
    box-shadow: 0 8px 24px rgba(124,58,237,0.3);
}
.stat-indigo { 
    background: linear-gradient(135deg, rgba(99,102,241,0.2) 0%, rgba(99,102,241,0.1) 100%); 
    color: #6366f1; 
    border: 1px solid rgba(99,102,241,0.3);
    box-shadow: 0 8px 24px rgba(99,102,241,0.3);
}
.stat-cyan   { 
    background: linear-gradient(135deg, rgba(6,182,212,0.2) 0%, rgba(6,182,212,0.1) 100%); 
    color: #0891b2; 
    border: 1px solid rgba(6,182,212,0.3);
    box-shadow: 0 8px 24px rgba(6,182,212,0.3);
}
.stat-green  { 
    background: linear-gradient(135deg, rgba(16,185,129,0.2) 0%, rgba(16,185,129,0.1) 100%); 
    color: #10b981; 
    border: 1px solid rgba(16,185,129,0.3);
    box-shadow: 0 8px 24px rgba(16,185,129,0.3);
}

/* =============================================
   ADMIN CARD
============================================= */
.admin-card {
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 0 60px rgba(124,58,237,0.1);
    position: relative;
    overflow: hidden;
}

.admin-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(124,58,237,0.5) 50%, transparent 100%);
}

.card-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.3px;
}

.card-title i { 
    color: #7C3AED; 
    font-size: 1.1rem;
    background: rgba(124,58,237,0.15);
    padding: 8px;
    border-radius: var(--radius-md);
}

/* =============================================
   FILTER BAR
============================================= */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

/* =============================================
   FORMS
============================================= */
.form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-family: var(--font-main);
    background: rgba(15,23,42,0.6);
    border: 2px solid rgba(124,58,237,0.2);
    border-radius: var(--radius-lg);
    color: white;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control::placeholder { color: rgba(255,255,255,0.4); }

.form-control:focus {
    border-color: #7C3AED;
    background: rgba(15,23,42,0.8);
    box-shadow: 0 0 0 4px rgba(124,58,237,0.15), 0 0 20px rgba(124,58,237,0.2);
}

select.form-control option { background: #0F172A; color: white; }
textarea.form-control { resize: vertical; line-height: 1.7; }

.form-group { margin-bottom: 24px; }

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.form-label.required::after { content: ' *'; color: var(--danger); }

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid rgba(124,58,237,0.2);
}

/* =============================================
   ADMIN TABLE
============================================= */
.table-responsive { 
    width: 100%; 
    overflow-x: auto;
    border-radius: var(--radius-lg);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
    background: rgba(15,23,42,0.4);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.admin-table th {
    padding: 16px 24px;
    font-size: 0.75rem;
    font-weight: 800;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    background: rgba(124,58,237,0.15);
    border-bottom: 2px solid rgba(124,58,237,0.3);
}

.admin-table td {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(124,58,237,0.15);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    vertical-align: middle;
    white-space: normal;
    transition: all 0.3s ease;
}

.admin-table tbody tr:hover { 
    background: rgba(124,58,237,0.1);
    transform: scale(1.01);
    box-shadow: 0 4px 16px rgba(124,58,237,0.15);
}

.tbl-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(124,58,237,0.2);
    color: #7C3AED;
    border: 1px solid rgba(124,58,237,0.4);
    box-shadow: 0 2px 8px rgba(124,58,237,0.2);
}

/* ─── Action buttons ─── */
.action-buttons { display: flex; gap: 12px; align-items: center; }

.btn-icon {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

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

.btn-icon:hover::before {
    left: 100%;
}

.btn-icon-edit { 
    background: rgba(124,58,237,0.15); 
    color: #7C3AED; 
    border: 2px solid rgba(124,58,237,0.3);
    box-shadow: 0 4px 16px rgba(124,58,237,0.2);
}
.btn-icon-edit:hover { 
    background: linear-gradient(135deg, #7C3AED 0%, #F97316 100%);
    color: white; 
    border-color: transparent;
    transform: scale(1.15) translateY(-3px) rotate(5deg);
    box-shadow: 0 8px 32px rgba(124,58,237,0.5), 0 0 60px rgba(124,58,237,0.3);
}

.btn-icon-delete { 
    background: rgba(239,68,68,0.15); 
    color: #ef4444; 
    border: 2px solid rgba(239,68,68,0.3);
    box-shadow: 0 4px 16px rgba(239,68,68,0.2);
}
.btn-icon-delete:hover { 
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white; 
    border-color: transparent;
    transform: scale(1.15) translateY(-3px) rotate(-5deg);
    box-shadow: 0 8px 32px rgba(239,68,68,0.5), 0 0 60px rgba(239,68,68,0.3);
}

.btn-icon-view { 
    background: rgba(6,182,212,0.15); 
    color: #06b6d4; 
    border: 2px solid rgba(6,182,212,0.3);
    box-shadow: 0 4px 16px rgba(6,182,212,0.2);
}
.btn-icon-view:hover { 
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white; 
    border-color: transparent;
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 8px 32px rgba(6,182,212,0.5), 0 0 60px rgba(6,182,212,0.3);
}

.btn-icon-download { 
    background: rgba(16,185,129,0.15); 
    color: #10b981; 
    border: 2px solid rgba(16,185,129,0.3);
    box-shadow: 0 4px 16px rgba(16,185,129,0.2);
}
.btn-icon-download:hover { 
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white; 
    border-color: transparent;
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 8px 32px rgba(16,185,129,0.5), 0 0 60px rgba(16,185,129,0.3);
}

.btn-icon-save { 
    background: rgba(124,58,237,0.15); 
    color: #7C3AED; 
    border: 2px solid rgba(124,58,237,0.3);
    box-shadow: 0 4px 16px rgba(124,58,237,0.2);
}
.btn-icon-save:hover { 
    background: linear-gradient(135deg, #7C3AED 0%, #F97316 100%);
    color: white; 
    border-color: transparent;
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 8px 32px rgba(124,58,237,0.5), 0 0 60px rgba(124,58,237,0.3);
}

/* =============================================
   PAGINATION
============================================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.page-link {
    padding: 10px 18px;
    background: rgba(15,23,42,0.6);
    border: 2px solid rgba(124,58,237,0.2);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
}

.page-link:hover,
.page-item.active .page-link {
    background: linear-gradient(135deg, #7C3AED 0%, #F97316 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 6px 20px rgba(124,58,237,0.4);
    transform: translateY(-2px);
}

/* =============================================
   ALTERNATIVES BUILDER
============================================= */
.alternatives-builder-list { display: flex; flex-direction: column; gap: 14px; }

.builder-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(15,23,42,0.4);
    border: 2px solid rgba(124,58,237,0.2);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.builder-item:hover { 
    border-color: rgba(124,58,237,0.4); 
    background: rgba(15,23,42,0.6);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(124,58,237,0.15);
}

.correct-radio-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

.correct-radio-label span {
    font-size: 0.65rem;
    font-weight: 800;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Image preview */
.image-preview-container {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 12px;
    padding: 14px;
    background: rgba(15,23,42,0.4);
    border: 2px dashed rgba(124,58,237,0.3);
    border-radius: var(--radius-lg);
    min-height: 64px;
}

.img-preview {
    max-width: 130px; max-height: 90px;
    border-radius: var(--radius-md);
    object-fit: contain;
    border: 1px solid rgba(124,58,237,0.3);
}

/* =============================================
   SCORE BADGE (results table)
============================================= */
.score-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(124,58,237,0.2);
    color: #7C3AED;
    border: 1px solid rgba(124,58,237,0.4);
    box-shadow: 0 2px 8px rgba(124,58,237,0.2);
}

/* =============================================
   ADMIN BUTTONS
============================================= */
.btn { 
    width: auto;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #7C3AED 0%, #F97316 100%);
    color: white;
    box-shadow: 0 8px 32px rgba(124,58,237,0.5), 0 0 60px rgba(124,58,237,0.3);
    border: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 48px rgba(124,58,237,0.6), 0 0 80px rgba(124,58,237,0.4);
}
.btn-primary:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-secondary {
    background: rgba(15,23,42,0.8);
    border: 2px solid rgba(124,58,237,0.4);
    color: white;
    box-shadow: 0 4px 16px rgba(124,58,237,0.2);
}
.btn-secondary:hover {
    background: rgba(124,58,237,0.2);
    border-color: rgba(124,58,237,0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124,58,237,0.3);
}

.btn-cancel {
    background: rgba(15,23,42,0.8);
    border: 2px solid rgba(107,114,128,0.4);
    color: rgba(255,255,255,0.8);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.btn-cancel:hover { 
    background: rgba(107,114,128,0.2);
    color: white; 
    border-color: rgba(107,114,128,0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.btn-ghost {
    background: rgba(124,58,237,0.15);
    color: #7C3AED;
    border: 2px solid rgba(124,58,237,0.3);
    box-shadow: 0 4px 16px rgba(124,58,237,0.2);
}
.btn-ghost:hover { 
    background: rgba(124,58,237,0.25);
    color: white;
    border-color: rgba(124,58,237,0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124,58,237,0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 32px rgba(239,68,68,0.4), 0 0 60px rgba(239,68,68,0.2);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.btn-danger:hover { 
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 48px rgba(239,68,68,0.5), 0 0 80px rgba(239,68,68,0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 32px rgba(16,185,129,0.4), 0 0 60px rgba(16,185,129,0.2);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 48px rgba(16,185,129,0.5), 0 0 80px rgba(16,185,129,0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #F97316 0%, #ea580c 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 32px rgba(249,115,22,0.4), 0 0 60px rgba(249,115,22,0.2);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.btn-warning:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 48px rgba(249,115,22,0.5), 0 0 80px rgba(249,115,22,0.3);
}

.btn-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 32px rgba(6,182,212,0.4), 0 0 60px rgba(6,182,212,0.2);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.btn-info:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 48px rgba(6,182,212,0.5), 0 0 80px rgba(6,182,212,0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-icon-only {
    padding: 12px;
    width: 44px;
    height: 44px;
}

/* =============================================
   LOGIN SCREEN
============================================= */
.login-bg {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0F172A 0%, #1e1b4b 50%, #0F172A 100%);
    position: relative;
    overflow: hidden;
}

.login-bg::before, .login-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}
.login-bg::before {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(124,58,237,0.3) 0%, transparent 65%);
    top: -250px; left: -250px;
}
.login-bg::after {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(249,115,22,0.25) 0%, transparent 65%);
    bottom: -200px; right: -150px;
}

.login-card {
    background: rgba(15,23,42,0.8);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(124,58,237,0.3);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 440px;
    padding: 48px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.4), 0 0 100px rgba(124,58,237,0.2);
    position: relative;
    z-index: 1;
}

.login-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #7C3AED 0%, #F97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex; align-items: center; justify-content: center;
    gap: 12px;
    letter-spacing: -0.6px;
}

.login-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 36px;
}

.input-icon-wrapper { position: relative; }
.input-icon-wrapper .icon {
    position: absolute;
    left: 18px; top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.4);
    font-size: 0.95rem;
    pointer-events: none;
}
.input-icon-wrapper .form-control { padding-left: 48px; }

/* =============================================
   SEARCH BAR
============================================= */
.admin-search {
    position: relative;
    width: 300px;
}

.admin-search-input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    background: rgba(15,23,42,0.6);
    border: 2px solid rgba(124,58,237,0.2);
    border-radius: var(--radius-full);
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-search-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.admin-search-input:focus {
    border-color: #7C3AED;
    background: rgba(15,23,42,0.8);
    box-shadow: 0 0 0 4px rgba(124,58,237,0.15), 0 0 20px rgba(124,58,237,0.2);
}

.admin-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.4);
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.admin-search-input:focus + .admin-search-icon {
    color: #7C3AED;
}

/* =============================================
   NOTIFICATIONS
============================================= */
.admin-notifications {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 100;
}

.notification-btn {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124,58,237,0.15);
    border: 2px solid rgba(124,58,237,0.3);
    border-radius: var(--radius-full);
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-btn:hover {
    background: rgba(124,58,237,0.25);
    border-color: rgba(124,58,237,0.5);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124,58,237,0.3);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #F97316 0%, #ef4444 100%);
    border: 2px solid rgba(15,23,42,0.8);
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    max-height: 400px;
    background: #0B1121;
    border: 1px solid rgba(124,58,237,0.4);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8), 0 0 60px rgba(124,58,237,0.25);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(124,58,237,0.15);
}

.notification-header h4 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.mark-all-read {
    background: transparent;
    border: none;
    color: #7C3AED;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.mark-all-read:hover {
    background: rgba(124,58,237,0.1);
    color: white;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 4px 0;
}

.notification-list::-webkit-scrollbar {
    width: 4px;
}

.notification-list::-webkit-scrollbar-track {
    background: transparent;
}

.notification-list::-webkit-scrollbar-thumb {
    background: rgba(124,58,237,0.3);
    border-radius: var(--radius-full);
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: rgba(124,58,237,0.5);
}

.notification-item {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.notification-item:hover {
    background: #1e1b4b;
    border-left-color: #a855f7;
}

.notification-item.unread {
    background: rgba(124,58,237,0.15);
    border-left-color: #F97316;
}

.notification-item.unread:hover {
    background: rgba(124,58,237,0.25);
}

.notification-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #7C3AED 0%, #3b82f6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(124,58,237,0.3);
}

.notification-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.notification-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.notification-user {
    font-weight: 700;
    color: #f8fafc;
    font-size: 0.8rem;
}

.notification-time {
    font-size: 0.6rem;
    color: #94a3b8;
    font-weight: 500;
}

.notification-desc {
    font-size: 0.7rem;
    color: #cbd5e1;
    margin-bottom: 6px;
    line-height: 1.3;
}

.notification-desc strong {
    color: #e2e8f0;
    font-weight: 700;
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-badge-sm {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
}

.score-badge-sm.success { background: rgba(16,185,129,0.2); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.score-badge-sm.warning { background: rgba(249,115,22,0.2); color: #fb923c; border: 1px solid rgba(249,115,22,0.3); }
.score-badge-sm.danger { background: rgba(239,68,68,0.2); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }

.meta-item {
    font-size: 0.7rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.meta-item i.fa-check { color: #34d399; }
.meta-item i.fa-times { color: #f87171; }

.notification-footer {
    padding: 6px 12px;
    border-top: 1px solid rgba(124,58,237,0.15);
    text-align: center;
}

.view-all-notifications {
    color: #7C3AED;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.view-all-notifications:hover {
    color: white;
}

/* =============================================
   STATUS BADGES
============================================= */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: rgba(16,185,129,0.2);
    color: #10b981;
    border: 1px solid rgba(16,185,129,0.4);
    box-shadow: 0 2px 8px rgba(16,185,129,0.2);
}

.status-badge.pending {
    background: rgba(249,115,22,0.2);
    color: #F97316;
    border: 1px solid rgba(249,115,22,0.4);
    box-shadow: 0 2px 8px rgba(249,115,22,0.2);
}

.status-badge.deleted {
    background: rgba(239,68,68,0.2);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.4);
    box-shadow: 0 2px 8px rgba(239,68,68,0.2);
}

.status-badge.approved {
    background: rgba(124,58,237,0.2);
    color: #7C3AED;
    border: 1px solid rgba(124,58,237,0.4);
    box-shadow: 0 2px 8px rgba(124,58,237,0.2);
}

.status-badge.inactive {
    background: rgba(107,114,128,0.2);
    color: #9ca3af;
    border: 1px solid rgba(107,114,128,0.4);
    box-shadow: 0 2px 8px rgba(107,114,128,0.2);
}

/* =============================================
   CHECKBOXES & RADIOS
============================================= */
.custom-checkbox,
.custom-radio {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input,
.custom-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark,
.radiomark {
    position: relative;
    width: 22px;
    height: 22px;
    background: rgba(15,23,42,0.6);
    border: 2px solid rgba(124,58,237,0.3);
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.radiomark {
    border-radius: var(--radius-full);
}

.custom-checkbox:hover .checkmark,
.custom-radio:hover .radiomark {
    border-color: rgba(124,58,237,0.5);
    box-shadow: 0 0 12px rgba(124,58,237,0.2);
}

.custom-checkbox input:checked ~ .checkmark,
.custom-radio input:checked ~ .radiomark {
    background: linear-gradient(135deg, #7C3AED 0%, #F97316 100%);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}

.checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-checkbox input:checked ~ .checkmark::after {
    opacity: 1;
}

.radiomark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: var(--radius-full);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-radio input:checked ~ .radiomark::after {
    opacity: 1;
}

/* =============================================
   SWITCHES
============================================= */
.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.switch input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.switch-slider {
    position: relative;
    width: 48px;
    height: 26px;
    background: rgba(15,23,42,0.6);
    border: 2px solid rgba(124,58,237,0.3);
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.switch-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: rgba(255,255,255,0.5);
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.switch:hover .switch-slider {
    border-color: rgba(124,58,237,0.5);
    box-shadow: 0 0 12px rgba(124,58,237,0.2);
}

.switch input:checked ~ .switch-slider {
    background: linear-gradient(135deg, #7C3AED 0%, #F97316 100%);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}

.switch input:checked ~ .switch-slider::before {
    transform: translateX(22px);
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* =============================================
   PROGRESS BARS
============================================= */
.progress-container {
    width: 100%;
    margin-bottom: 20px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(15,23,42,0.6);
    border: 2px solid rgba(124,58,237,0.2);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7C3AED 0%, #F97316 100%);
    border-radius: var(--radius-full);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* =============================================
   MOBILE MENU TOGGLE
============================================= */
.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: rgba(124,58,237,0.15);
    border: 2px solid rgba(124,58,237,0.3);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle:hover {
    background: rgba(124,58,237,0.25);
    border-color: rgba(124,58,237,0.5);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(124,58,237,0.3);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
}

/* =============================================
   ANIMATIONS
============================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-scale-in {
    animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-in {
    animation: slideInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Staggered animations */
.admin-card {
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* =============================================
   SWEETALERT2 MODAL STYLING (ADMIN)
============================================= */
.swal2-popup {
    background: rgba(15,23,42,0.95) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 2px solid rgba(124,58,237,0.3) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 100px rgba(124,58,237,0.2) !important;
}

.swal2-title {
    color: white !important;
    font-family: var(--font-display) !important;
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    letter-spacing: -0.3px !important;
}

.swal2-html-container {
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
}

.swal2-icon {
    border-color: rgba(124,58,237,0.3) !important;
}

.swal2-icon.swal2-success {
    border-color: rgba(16,185,129,0.3) !important;
    color: #10b981 !important;
}

.swal2-icon.swal2-error {
    border-color: rgba(239,68,68,0.3) !important;
    color: #ef4444 !important;
}

.swal2-icon.swal2-warning {
    border-color: rgba(249,115,22,0.3) !important;
    color: #F97316 !important;
}

.swal2-icon.swal2-info {
    border-color: rgba(124,58,237,0.3) !important;
    color: #7C3AED !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, #7C3AED 0%, #F97316 100%) !important;
    border: none !important;
    border-radius: var(--radius-lg) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 12px 28px !important;
    box-shadow: 0 6px 24px rgba(124,58,237,0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.swal2-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 32px rgba(124,58,237,0.5) !important;
}

.swal2-cancel {
    background: rgba(15,23,42,0.6) !important;
    border: 2px solid rgba(124,58,237,0.2) !important;
    color: rgba(255,255,255,0.7) !important;
    border-radius: var(--radius-lg) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 12px 28px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.swal2-cancel:hover {
    background: rgba(124,58,237,0.15) !important;
    border-color: rgba(124,58,237,0.4) !important;
    color: white !important;
}

.swal2-input,
.swal2-textarea,
.swal2-select {
    background: rgba(15,23,42,0.6) !important;
    border: 2px solid rgba(124,58,237,0.2) !important;
    border-radius: var(--radius-lg) !important;
    color: white !important;
    font-size: 0.95rem !important;
}

.swal2-input:focus,
.swal2-textarea:focus,
.swal2-select:focus {
    border-color: #7C3AED !important;
    box-shadow: 0 0 0 4px rgba(124,58,237,0.15) !important;
}

.swal2-input::placeholder,
.swal2-textarea::placeholder {
    color: rgba(255,255,255,0.4) !important;
}

/* =============================================
   RESPONSIVE ADMIN
============================================= */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }
    .mobile-overlay { display: block; }
    .admin-search { display: none; }
    .admin-sidebar { 
        position: fixed; 
        width: 280px; 
        height: 100vh; 
        flex-direction: column;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .admin-sidebar.mobile-open { transform: translateX(0); }
    .sidebar-menu { flex-direction: column; padding: 0 12px; }
    .sidebar-item a { white-space: normal; font-size: 0.9rem; padding: 14px 16px; }
    .sidebar-section-label { display: block; }
    .sidebar-footer { display: block; }
    .admin-content { margin-left: 0 !important; }
    .admin-navbar { padding: 0 18px; }
    .admin-body { padding: 24px 18px; }
    .stats-grid { grid-template-columns: 1fr; gap: 16px; }
    .stat-card { padding: 24px 20px; }
    .stat-info p { font-size: 2rem; }
    .admin-card { padding: 24px 20px; }
    .admin-table th, .admin-table td { padding: 12px 16px; font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .admin-navbar { padding: 0 14px; height: 64px; }
    .admin-nav-title { font-size: 1rem; }
    .admin-user-info { padding: 8px 14px; font-size: 0.85rem; }
    .admin-body { padding: 20px 14px; }
    .stat-card { padding: 20px 16px; gap: 16px; }
    .stat-icon { width: 50px; height: 50px; font-size: 1.3rem; }
    .stat-info p { font-size: 1.8rem; }
    .admin-card { padding: 20px 16px; }
    .card-title { font-size: 1.1rem; }
    .form-control { padding: 12px 16px; font-size: 0.9rem; }
    .btn { padding: 12px 20px; font-size: 0.9rem; }
    .pagination { gap: 6px; }
    .page-link { padding: 8px 14px; font-size: 0.85rem; }
}

/* =============================================
   RESULTS CARDS (Modern Layout)
============================================= */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.result-card {
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: var(--radius-xl);
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, #7C3AED 0%, #F97316 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(124,58,237,0.2);
    border-color: rgba(124,58,237,0.4);
}

.result-card:hover::before {
    opacity: 1;
}

.result-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.result-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #7C3AED 0%, #F97316 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}

.result-username {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin: 0 0 4px 0;
}

.result-time {
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.result-badge {
    background: rgba(124,58,237,0.15);
    color: #c4b5fd;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(124,58,237,0.3);
    text-align: center;
}

.result-score-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.score-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
}

.score-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.score-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.score-stat.success { color: #34d399; }
.score-stat.danger { color: #f87171; }
.score-stat.info { color: #94a3b8; }

.score-stat i {
    width: 16px;
    text-align: center;
}
