/* ============================================================
   SRM Student Portal & Hostel Management System
   Premium Design System — Bootstrap 5 + Custom CSS
   ============================================================ */

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

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    --primary:       #003087;
    --primary-light: #0050b3;
    --primary-dark:  #001d54;
    --accent:        #c8960c;
    --accent-light:  #f0c535;
    --dark:          #0a1628;
    --grey-50:       #f8fafc;
    --grey-100:      #f1f5f9;
    --grey-200:      #e2e8f0;
    --grey-300:      #cbd5e1;
    --grey-400:      #94a3b8;
    --grey-500:      #64748b;
    --grey-600:      #475569;
    --grey-700:      #334155;
    --grey-800:      #1e293b;
    --grey-900:      #0f172a;
    --success:       #16a34a;
    --success-bg:    rgba(22,163,74,0.1);
    --danger:        #dc2626;
    --danger-bg:     rgba(220,38,38,0.1);
    --warning:       #d97706;
    --warning-bg:    rgba(217,119,6,0.1);
    --info:          #0284c7;
    --info-bg:       rgba(2,132,199,0.1);
    --purple:        #7c3aed;
    --teal:          #0f766e;
    --sidebar-width: 260px;
    --topbar-height: 60px;
    --radius-sm:     6px;
    --radius-md:     10px;
    --radius-lg:     16px;
    --radius-xl:     20px;
    --shadow-xs:     0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm:     0 1px 3px rgba(0,48,135,0.08);
    --shadow-md:     0 4px 12px rgba(0,48,135,0.1);
    --shadow-lg:     0 8px 24px rgba(0,48,135,0.12);
    --shadow-xl:     0 12px 40px rgba(0,48,135,0.15);
    --transition:    all 0.25s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--grey-100);
    color: var(--grey-800);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--grey-300); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--dark) 0%, #0d1f3c 50%, var(--primary-dark) 100%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.sidebar-brand {
    padding: 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.sidebar-logo {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 3px;
    box-shadow: 0 0 12px rgba(200,150,12,0.3);
}

.sidebar-logo img {
    width: 100%; height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.sidebar-brand-text h5 {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.sidebar-brand-text span {
    font-size: 0.65rem;
    color: var(--accent-light);
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }

.nav-section-label {
    padding: 16px 20px 6px;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: var(--transition);
    position: relative;
}

.sidebar-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
    border-left-color: rgba(200,150,12,0.5);
}

.sidebar-link.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(0,80,179,0.3), transparent);
    border-left-color: var(--accent);
    font-weight: 600;
}

.sidebar-link.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--accent);
    border-radius: 3px 0 0 3px;
}

.sidebar-link i {
    font-size: 1.05rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 16px 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.sidebar-user-info h6 {
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-info small {
    font-size: 0.65rem;
    color: var(--accent-light);
}

/* ── Topbar ────────────────────────────────────────────────── */
.topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--topbar-height);
    background: #fff;
    border-bottom: 1px solid var(--grey-200);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: var(--shadow-xs);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--grey-600);
    cursor: pointer;
    padding: 4px;
}

.topbar-breadcrumb {
    font-size: 0.82rem;
    color: var(--grey-500);
}

.topbar-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.topbar-breadcrumb .separator {
    margin: 0 6px;
    color: var(--grey-300);
}

.topbar-breadcrumb .current {
    color: var(--grey-800);
    font-weight: 600;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-btn {
    width: 38px; height: 38px;
    border-radius: var(--radius-md);
    border: 1px solid var(--grey-200);
    background: #fff;
    color: var(--grey-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
}

.topbar-btn:hover {
    background: var(--grey-50);
    border-color: var(--primary);
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: -2px; right: -2px;
    width: 18px; height: 18px;
    background: var(--danger);
    color: #fff;
    border-radius: 50%;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    animation: pulse 2s infinite;
}

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

.topbar-divider {
    width: 1px;
    height: 28px;
    background: var(--grey-200);
    margin: 0 4px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.topbar-user:hover { background: var(--grey-50); }

.topbar-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--grey-800);
}

.topbar-user-role {
    font-size: 0.68rem;
    color: var(--grey-500);
}

/* ── Main Content ──────────────────────────────────────────── */
.main-content {
    margin-left: var(--sidebar-width);
    padding-top: var(--topbar-height);
    min-height: 100vh;
}

.content-wrapper {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ── Page Header ───────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header-left h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--grey-900);
    margin: 0;
    line-height: 1.2;
}

.page-header-left p {
    font-size: 0.85rem;
    color: var(--grey-500);
    margin: 4px 0 0;
}

.page-header-actions {
    display: flex;
    gap: 8px;
}

/* ── Stats Cards ───────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--grey-200);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card.stat-blue::before    { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.stat-card.stat-green::before   { background: linear-gradient(90deg, #15803d, var(--success)); }
.stat-card.stat-gold::before    { background: linear-gradient(90deg, var(--accent), var(--accent-light)); }
.stat-card.stat-red::before     { background: linear-gradient(90deg, #b91c1c, var(--danger)); }
.stat-card.stat-purple::before  { background: linear-gradient(90deg, #6d28d9, var(--purple)); }
.stat-card.stat-teal::before    { background: linear-gradient(90deg, #0d9488, var(--teal)); }
.stat-card.stat-info::before    { background: linear-gradient(90deg, #0369a1, var(--info)); }
.stat-card.stat-warning::before { background: linear-gradient(90deg, #b45309, var(--warning)); }

.stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-icon.icon-blue    { background: rgba(0,48,135,0.1);   color: var(--primary); }
.stat-icon.icon-green   { background: var(--success-bg);    color: var(--success); }
.stat-icon.icon-gold    { background: rgba(200,150,12,0.1); color: var(--accent); }
.stat-icon.icon-red     { background: var(--danger-bg);     color: var(--danger); }
.stat-icon.icon-purple  { background: rgba(124,58,237,0.1); color: var(--purple); }
.stat-icon.icon-teal    { background: rgba(15,118,110,0.1); color: var(--teal); }
.stat-icon.icon-info    { background: var(--info-bg);       color: var(--info); }
.stat-icon.icon-warning { background: var(--warning-bg);    color: var(--warning); }

.stat-details { flex: 1; }
.stat-value {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--grey-900);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--grey-500);
    font-weight: 500;
}
.stat-trend {
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 20px;
}
.trend-up   { background: var(--success-bg); color: var(--success); }
.trend-down { background: var(--danger-bg);  color: var(--danger); }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--grey-200);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover { box-shadow: var(--shadow-sm); }

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--grey-200);
    background: var(--grey-50);
}

.card-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header-title i {
    font-size: 1rem;
    color: var(--primary);
}

.card-header-title h5 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--grey-800);
    margin: 0;
}

.card-header-title span {
    font-size: 0.75rem;
    color: var(--grey-500);
}

.card-body { padding: 20px; }
.card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--grey-200);
    background: var(--grey-50);
}

/* ── Tables ────────────────────────────────────────────────── */
.table-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--grey-200);
    background: #fff;
}

.table {
    margin-bottom: 0;
    font-size: 0.84rem;
}

.table thead th {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 12px 16px;
    border: none;
    white-space: nowrap;
}

.table tbody tr {
    border-bottom: 1px solid var(--grey-100);
    transition: background 0.15s ease;
}

.table tbody tr:hover { background: rgba(0,48,135,0.02); }
.table tbody tr:last-child { border-bottom: none; }
.table tbody td { padding: 12px 16px; vertical-align: middle; color: var(--grey-700); }

/* DataTables override */
.dataTables_wrapper .dataTables_filter input {
    border: 1.5px solid var(--grey-200);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 0.84rem;
    transition: var(--transition);
}
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,48,135,0.1);
    outline: none;
}
.dataTables_wrapper .dataTables_length select {
    border: 1.5px solid var(--grey-200);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-sm);
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--grey-100) !important;
    border: 1px solid var(--grey-200) !important;
    border-radius: var(--radius-sm);
    color: var(--primary) !important;
}

/* ── Badges ────────────────────────────────────────────────── */
.badge {
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.3px;
    padding: 4px 10px;
    border-radius: 20px;
}

.badge-status-pending    { background: var(--warning-bg); color: var(--warning); }
.badge-status-approved   { background: var(--success-bg); color: var(--success); }
.badge-status-rejected   { background: var(--danger-bg);  color: var(--danger); }
.badge-status-active     { background: var(--info-bg);    color: var(--info); }
.badge-status-completed  { background: rgba(15,118,110,0.1); color: var(--teal); }
.badge-status-expired    { background: rgba(107,114,128,0.1); color: var(--grey-500); }
.badge-status-cancelled  { background: rgba(107,114,128,0.1); color: var(--grey-500); }

.badge-role-admin       { background: rgba(124,58,237,0.1); color: var(--purple); }
.badge-role-warden      { background: rgba(0,48,135,0.1);   color: var(--primary); }
.badge-role-security    { background: rgba(15,118,110,0.1); color: var(--teal); }
.badge-role-student     { background: rgba(2,132,199,0.1);  color: var(--info); }
.badge-role-faculty     { background: rgba(217,119,6,0.1);  color: var(--warning); }
.badge-role-superadmin  { background: rgba(124,58,237,0.15); color: var(--purple); }

.badge-late { background: var(--danger-bg); color: var(--danger); animation: glow 2s infinite; }
@keyframes glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.3); }
    50% { box-shadow: 0 0 8px 2px rgba(220,38,38,0.2); }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,48,135,0.25);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,48,135,0.35);
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, #15803d, var(--success));
    color: #fff;
}
.btn-success:hover { transform: translateY(-1px); color: #fff; }

.btn-danger {
    background: linear-gradient(135deg, #b91c1c, var(--danger));
    color: #fff;
}
.btn-danger:hover { transform: translateY(-1px); color: #fff; }

.btn-warning {
    background: linear-gradient(135deg, #b45309, var(--warning));
    color: #fff;
}

.btn-outline-primary {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}

.btn-outline-secondary {
    background: transparent;
    border: 1.5px solid var(--grey-300);
    color: var(--grey-600);
}
.btn-outline-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0,48,135,0.04);
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--dark);
    font-weight: 700;
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(200,150,12,0.3); }

.btn-sm { padding: 5px 12px; font-size: 0.78rem; }
.btn-lg { padding: 12px 28px; font-size: 0.92rem; }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--grey-700);
    margin-bottom: 6px;
}

.form-control, .form-select {
    border: 1.5px solid var(--grey-200);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: var(--grey-800);
    padding: 9px 14px;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,48,135,0.1);
}

textarea.form-control { resize: vertical; min-height: 90px; }
.form-text { font-size: 0.75rem; color: var(--grey-500); }

.input-group-text {
    background: var(--grey-50);
    border: 1.5px solid var(--grey-200);
    color: var(--grey-500);
    font-size: 0.88rem;
}

/* ── Alerts ────────────────────────────────────────────────── */
.alert {
    border-radius: var(--radius-md);
    font-size: 0.86rem;
    border: none;
    padding: 14px 18px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.alert-success { background: var(--success-bg); color: #15803d; border-left: 4px solid var(--success); }
.alert-danger  { background: var(--danger-bg);  color: #b91c1c; border-left: 4px solid var(--danger); }
.alert-warning { background: var(--warning-bg); color: #92400e; border-left: 4px solid var(--warning); }
.alert-info    { background: var(--info-bg);    color: #075985; border-left: 4px solid var(--info); }

/* ── Widget Grid ───────────────────────────────────────────── */
.widget-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: start;
}

.widget-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

/* ── Avatar ────────────────────────────────────────────────── */
.avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    flex-shrink: 0;
    overflow: hidden;
}

.avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-sm  { width: 32px; height: 32px; font-size: 0.7rem; }
.avatar-lg  { width: 56px; height: 56px; font-size: 1rem; }
.avatar-xl  { width: 80px; height: 80px; font-size: 1.4rem; }

.avatar-blue   { background: rgba(0,48,135,0.1);   color: var(--primary); }
.avatar-green  { background: var(--success-bg);    color: var(--success); }
.avatar-gold   { background: rgba(200,150,12,0.1); color: var(--accent); }
.avatar-red    { background: var(--danger-bg);     color: var(--danger); }
.avatar-purple { background: rgba(124,58,237,0.1); color: var(--purple); }

/* ── Activity Feed ─────────────────────────────────────────── */
.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--grey-100);
}
.activity-item:last-child { border-bottom: none; }

.activity-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.activity-body { flex: 1; }
.activity-text { font-size: 0.84rem; color: var(--grey-700); }
.activity-time { font-size: 0.72rem; color: var(--grey-400); margin-top: 2px; }

/* ── Notification Dropdown ─────────────────────────────────── */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--grey-200);
    z-index: 1050;
    display: none;
    animation: fadeInUp 0.2s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.notification-dropdown.show { display: block; }

.notification-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--grey-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h6 { font-size: 0.88rem; font-weight: 700; margin: 0; }

.notification-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--grey-100);
    transition: background 0.15s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.notification-item:hover { background: var(--grey-50); }
.notification-item.unread { background: rgba(0,48,135,0.03); }
.notification-item .icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.notification-item .text { font-size: 0.82rem; color: var(--grey-700); }
.notification-item .time { font-size: 0.7rem; color: var(--grey-400); margin-top: 3px; }

/* ── QR Pass Card ──────────────────────────────────────────── */
.qr-pass-card {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 2.5px solid var(--grey-200);
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-pass-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.qr-pass-header {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    padding: 20px 22px 10px;
    color: #fff;
    position: relative;
}

.qr-pass-header h4 { font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; }
.qr-pass-header p { font-size: 0.72rem; color: rgba(255,255,255,0.7); margin: 0; }

/* Semester Badge Circle in header */
.qr-pass-sem-badge {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    backdrop-filter: blur(4px);
    flex-shrink: 0;
}

/* Risk Level Strip */
.qr-pass-risk {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.3px;
}

.qr-pass-body {
    padding: 24px;
    text-align: center;
    position: relative;
}

/* Left accent bar */
.qr-pass-accent-bar {
    position: absolute;
    top: 0; left: 0;
    width: 5px;
    height: 100%;
    border-radius: 0 4px 4px 0;
}

.qr-pass-code {
    display: inline-block;
    padding: 14px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 3px solid;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.qr-pass-info {
    text-align: left;
    padding: 0 8px;
}

.qr-pass-info .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--grey-100);
    font-size: 0.82rem;
}

.qr-pass-info .info-row:last-child { border-bottom: none; }
.qr-pass-info .info-label { color: var(--grey-500); font-weight: 500; }
.qr-pass-info .info-value { color: var(--grey-800); font-weight: 600; text-align: right; }

.qr-pass-footer {
    background: var(--grey-50);
    padding: 12px 20px;
    text-align: center;
    font-size: 0.72rem;
    color: var(--grey-500);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ── Stepper ───────────────────────────────────────────────── */
.stepper {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    position: relative;
}

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.stepper-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(50% + 20px);
    width: calc(100% - 40px);
    height: 2px;
    background: var(--grey-200);
    z-index: 0;
}

.stepper-step.completed:not(:last-child)::after,
.stepper-step.active:not(:last-child)::after {
    background: var(--primary);
}

.stepper-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    z-index: 1;
    background: var(--grey-200);
    color: var(--grey-500);
    transition: var(--transition);
}

.stepper-step.active .stepper-circle {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 0 0 4px rgba(0,48,135,0.15);
}

.stepper-step.completed .stepper-circle {
    background: var(--success);
    color: #fff;
}

.stepper-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--grey-400);
    margin-top: 8px;
    text-align: center;
}

.stepper-step.active .stepper-label { color: var(--primary); }
.stepper-step.completed .stepper-label { color: var(--success); }

/* ── Star Rating ───────────────────────────────────────────── */
.star-rating {
    display: inline-flex;
    gap: 4px;
    direction: rtl;
}

.star-rating input { display: none; }

.star-rating label {
    font-size: 1.5rem;
    color: var(--grey-300);
    cursor: pointer;
    transition: color 0.15s;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #f59e0b;
}

/* ── Quick Action Cards ────────────────────────────────────── */
.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    background: #fff;
    border: 1.5px solid var(--grey-200);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--grey-700);
    transition: var(--transition);
    text-align: center;
}

.quick-action:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--primary);
}

.quick-action-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.quick-action-text {
    font-size: 0.82rem;
    font-weight: 600;
}

/* ── Welcome Banner ────────────────────────────────────────── */
.welcome-banner {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -60px; right: -40px;
    width: 250px; height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,150,12,0.2), transparent 70%);
}

.welcome-banner::after {
    content: '';
    position: absolute;
    bottom: -80px; left: 30%;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,80,179,0.3), transparent 70%);
}

.welcome-content { position: relative; z-index: 1; }
.welcome-content h2 { font-size: 1.4rem; font-weight: 700; margin: 0 0 6px; }
.welcome-content p { font-size: 0.88rem; color: rgba(255,255,255,0.8); margin: 0; }
.welcome-meta { position: relative; z-index: 1; text-align: right; }
.welcome-meta .date { font-size: 0.85rem; color: var(--accent-light); font-weight: 600; }
.welcome-meta .time { font-size: 0.75rem; color: rgba(255,255,255,0.6); }

/* ── Scanner UI ────────────────────────────────────────────── */
.scanner-viewport {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid var(--primary);
    position: relative;
    aspect-ratio: 1;
    background: #000;
}

.scanner-viewport video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

.scanner-overlay::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 200px; height: 200px;
    border: 2px solid var(--accent);
    border-radius: var(--radius-md);
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.4);
}

.scanner-line {
    position: absolute;
    left: calc(50% - 98px);
    width: 196px;
    height: 2px;
    background: var(--accent);
    top: calc(50% - 98px);
    animation: scanLine 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(200,150,12,0.5);
}

@keyframes scanLine {
    0%, 100% { top: calc(50% - 98px); }
    50%      { top: calc(50% + 96px); }
}

/* ── Filter Bar ────────────────────────────────────────────── */
.filter-bar {
    background: #fff;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--grey-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group .form-control,
.filter-group .form-select {
    min-width: 160px;
    font-size: 0.84rem;
    padding: 7px 12px;
}

/* ── Empty State ───────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--grey-400);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--grey-600);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.85rem;
    max-width: 360px;
    margin: 0 auto;
}

/* ── Login Page — Premium Redesign ─────────────────────────── */

/* Fullscreen Particle Canvas */
.login-particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Animated Mesh Gradient */
.login-mesh-gradient {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(0,80,179,0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(124,58,237,0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 50%, rgba(200,150,12,0.06) 0%, transparent 60%);
    animation: meshShift 12s ease-in-out infinite alternate;
}

@keyframes meshShift {
    0%   { opacity: 0.7; filter: hue-rotate(0deg); }
    50%  { opacity: 1;   filter: hue-rotate(15deg); }
    100% { opacity: 0.8; filter: hue-rotate(-10deg); }
}

/* Floating Geometric Shapes */
.login-geo {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    border: 1.5px solid rgba(255,255,255,0.06);
    opacity: 0.5;
}

.login-geo-1 {
    width: 200px; height: 200px;
    border-radius: 30% 70% 60% 40% / 50% 40% 60% 50%;
    top: 8%; left: 5%;
    animation: geoDrift1 18s ease-in-out infinite alternate, geoRotate 30s linear infinite;
}

.login-geo-2 {
    width: 150px; height: 150px;
    border-radius: 50%;
    bottom: 12%; right: 8%;
    border-color: rgba(124,58,237,0.1);
    animation: geoDrift2 22s ease-in-out infinite alternate, geoRotate 40s linear infinite reverse;
}

.login-geo-3 {
    width: 100px; height: 100px;
    border-radius: 20%;
    top: 55%; left: 45%;
    border-color: rgba(200,150,12,0.08);
    animation: geoDrift3 15s ease-in-out infinite alternate, geoRotate 25s linear infinite;
}

.login-geo-4 {
    width: 80px; height: 80px;
    border-radius: 50% 20% 50% 20%;
    top: 20%; right: 30%;
    border-color: rgba(0,80,179,0.08);
    animation: geoDrift2 20s ease-in-out infinite alternate-reverse;
}

@keyframes geoDrift1 {
    0% { transform: translate(0,0) scale(1); }
    100% { transform: translate(60px, -40px) scale(1.1); }
}
@keyframes geoDrift2 {
    0% { transform: translate(0,0) scale(1); }
    100% { transform: translate(-50px, 30px) scale(0.9); }
}
@keyframes geoDrift3 {
    0% { transform: translate(0,0); }
    100% { transform: translate(30px, -50px); }
}
@keyframes geoRotate {
    from { rotate: 0deg; }
    to { rotate: 360deg; }
}

/* Layout */
.login-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: #060b16;
    position: relative;
    overflow: hidden;
}

/* Left Panel */
.login-left {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    position: relative;
    z-index: 1;
    border-right: 1px solid rgba(255,255,255,0.04);
}

.login-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    max-width: 460px;
}

.login-hero-logo {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 3px solid var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 0 40px rgba(200,150,12,0.25), 0 0 80px rgba(200,150,12,0.08);
    padding: 6px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 0 40px rgba(200,150,12,0.25), 0 0 80px rgba(200,150,12,0.08); }
    50%      { box-shadow: 0 0 50px rgba(200,150,12,0.35), 0 0 100px rgba(200,150,12,0.12); }
}

.login-hero-logo img {
    width: 100%; height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* Typing heading with blinking cursor */
.login-typing-heading,
.login-hero h1 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    min-height: 3em;
    background: linear-gradient(135deg, #ffffff 20%, #a5b4fc 50%, #c4b5fd 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientText 6s ease infinite;
}

.login-typing-heading::after {
    content: '|';
    -webkit-text-fill-color: var(--accent-light);
    animation: blink 0.8s step-end infinite;
    font-weight: 300;
}

.login-typing-heading.typed-done::after {
    animation: blink 1s step-end 3 forwards;
}

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes gradientText {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-hero .campus {
    font-size: 0.84rem;
    color: var(--accent-light);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Animated Stats Row */
.login-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
    padding: 18px 28px;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
}

.login-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
}

.login-stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.login-stat-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 4px;
}

.login-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.08);
}

/* Hero Feature Card */
.login-hero-card {
    background: rgba(255,255,255,0.025);
    border-radius: 20px;
    padding: 28px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.login-hero-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.1);
}

.feature-list { list-style: none; padding: 0; }

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    transition: all 0.25s ease;
}

.feature-list li:hover {
    transform: translateX(6px);
    color: #fff;
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li i {
    color: var(--accent-light);
    font-size: 1rem;
    background: rgba(240,197,53,0.08);
    width: 30px; height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.feature-list li:hover i {
    transform: scale(1.15);
    background: rgba(240,197,53,0.14);
}

/* Right Panel */
.login-right {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    position: relative;
    z-index: 1;
}

/* Login Card with animated glow border */
.login-card {
    position: relative;
    background: rgba(12,18,35,0.65);
    border-radius: 24px;
    padding: 44px 38px;
    width: 100%;
    max-width: 440px;
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    overflow: hidden;
    transition: transform 0.4s ease;
}

.login-card:hover {
    transform: translateY(-3px);
}

/* Rotating gradient glow behind the card */
.login-card-glow {
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 26px;
    background: conic-gradient(
        from var(--glow-angle, 0deg),
        rgba(0,80,179,0.5),
        rgba(124,58,237,0.4),
        rgba(200,150,12,0.3),
        rgba(0,80,179,0.5)
    );
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    filter: blur(12px);
    animation: glowRotate 4s linear infinite;
}

.login-card:hover .login-card-glow {
    opacity: 0.6;
}

@keyframes glowRotate {
    from { --glow-angle: 0deg; }
    to   { --glow-angle: 360deg; }
}

@property --glow-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.login-card h2 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.login-card .subtitle {
    color: #94a3b8;
    font-size: 0.88rem;
    margin-bottom: 28px;
}

/* Animated Login Tabs */
.login-tabs {
    display: flex;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 5px;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 26px;
}

.login-tab {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.84rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    background: transparent;
    color: #94a3b8;
    border: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
}

.login-tab.active {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,80,179,0.35), 0 0 20px rgba(0,80,179,0.15);
}

.login-tab:hover:not(.active) {
    color: #f8fafc;
    background: rgba(255,255,255,0.04);
}

/* Tab Content Fade */
.login-card .tab-content {
    display: none;
    animation: fadeIn 0.35s ease;
}
.login-card .tab-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Premium Inputs */
.login-card .form-label {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.84rem;
    margin-bottom: 6px;
}

.login-card .input-group {
    background: rgba(255,255,255,0.025);
    border: 1.5px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-card .input-group:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(0,80,179,0.2), 0 0 16px rgba(0,80,179,0.1);
    background: rgba(255,255,255,0.04);
}

.login-card .input-group-text {
    background: transparent;
    border: none;
    color: #64748b;
    padding-left: 16px;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.login-card .input-group:focus-within .input-group-text {
    color: #60a5fa;
}

.login-card .form-control {
    background: transparent;
    border: none;
    color: #f8fafc;
    padding: 12px 14px 12px 8px;
    font-size: 0.9rem;
}
.login-card .form-control:focus {
    box-shadow: none;
    background: transparent;
}

.login-card .form-control::placeholder {
    color: #475569;
}

.login-card .btn-outline-secondary {
    border: none;
    background: transparent;
    color: #64748b;
    padding-right: 16px;
}
.login-card .btn-outline-secondary:hover {
    color: #fff;
    background: transparent;
}

.login-card .form-text {
    color: #64748b;
    font-size: 0.78rem;
    margin-top: 6px;
}

/* Premium Buttons */
.login-card .btn-primary {
    background: linear-gradient(135deg, #0050b3 0%, #003087 100%);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 20px rgba(0,48,135,0.4);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.login-card .btn-primary:hover::before {
    left: 100%;
}

.login-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0,80,179,0.5);
}

.login-card .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 20px rgba(16,185,129,0.3);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

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

.login-card .btn-success:hover::before { left: 100%; }

.login-card .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(16,185,129,0.5);
}

/* Login Page Alerts — Dark Theme */
.login-card .alert {
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    border: none;
    animation: slideDown 0.3s ease;
    position: relative;
    z-index: 2;
}
.login-card .alert-danger {
    background: rgba(239,68,68,0.12);
    color: #fca5a5;
    border-left: 4px solid #ef4444 !important;
}
.login-card .alert-success {
    background: rgba(16,185,129,0.12);
    color: #a7f3d0;
    border-left: 4px solid #10b981 !important;
}
.login-card .alert-info {
    background: rgba(59,130,246,0.12);
    color: #bfdbfe;
    border-left: 4px solid #3b82f6 !important;
}
.login-card .alert-warning {
    background: rgba(245,158,11,0.12);
    color: #fde047;
    border-left: 4px solid #f59e0b !important;
}

/* ── Sidebar Backdrop (mobile) ────────────────────────────── */
.sidebar-backdrop {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-backdrop.show {
    display: block;
    opacity: 1;
}

/* ── Mobile Responsive ────────────────────────────────────── */
@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .sidebar-toggle { display: block; }
    .topbar { left: 0; }
    .main-content { margin-left: 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .widget-grid, .widget-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }
    .login-left { display: none; }
    .login-right { 
        padding: 40px 20px;
        min-height: 100vh;
    }
    .login-card {
        padding: 32px 24px;
        max-width: 100%;
    }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 16px; }
    .stat-value { font-size: 1.3rem; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .content-wrapper { padding: 16px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* ── Print Styles ──────────────────────────────────────────── */
@media print {
    .sidebar, .topbar, .sidebar-backdrop { display: none !important; }
    .main-content { margin-left: 0 !important; padding-top: 0 !important; }
    .btn, .filter-bar, .page-header-actions { display: none !important; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; }
}

