/* ==========================================
 * Event Registration System - Main Stylesheet
 * Premium Design System with Modern Dark sidebar, Glassmorphism, 
 * CSS Grid/Flexbox Layout, and Custom Components.
 * ========================================== */

:root {
    /* Color Palette */
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #e0e7ff;
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --info: #06b6d4;
    --info-light: #ecfeff;
    
    /* Neutral Colors */
    --background: #f8fafc;
    --surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    
    /* Accents for Roles */
    --accent-admin: linear-gradient(135deg, #4f46e5, #818cf8);
    --accent-desk: linear-gradient(135deg, #06b6d4, #22d3ee);
    --accent-canteen: linear-gradient(135deg, #10b981, #34d399);

    /* Sidebar Theme (Dark glassmorphism style) */
    --sidebar-bg: #0f172a;
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #ffffff;
    --sidebar-hover: #1e293b;
    --sidebar-border: #1e293b;

    /* Shadow & Border Radius */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 15px rgba(99, 102, 241, 0.15);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Font */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ==========================================
 * 1. Base Reset & Layout
 * ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.app-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* App Layout Grid (Sidebar + Main) */
.app-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

@media (max-width: 992px) {
    .app-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: fixed !important;
        left: -300px;
        top: 0;
        bottom: 0;
        height: 100dvh !important;
        z-index: 1040;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
    }
    .sidebar.sidebar--open {
        left: 0 !important;
    }
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1030;
    }
    .sidebar-overlay.sidebar-overlay--open {
        display: block !important;
    }
}

/* Mobile Topbar */
.mobile-topbar {
    display: none;
    background-color: var(--sidebar-bg);
    color: #fff;
    padding: 1rem 1.5rem;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 992px) {
    .mobile-topbar {
        display: flex;
    }
    .main-content {
        padding: 1.5rem;
    }
}

/* ==========================================
 * 2. Navigation & Sidebar
 * ========================================== */

/* Top Navbar (For pages without sidebar) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--sidebar-bg);
    padding: 1rem 2rem;
    color: #fff;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #818cf8, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e2e8f0;
}

.nav-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    color: #fff;
}

/* Sidebar Navigation */
.sidebar {
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-right: 1px solid var(--sidebar-border);
    position: sticky;
    top: 0;
    height: 100dvh;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
}

.sidebar-logo i {
    color: var(--primary);
}

.sidebar-role-badge {
    align-self: flex-start;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 50px;
    background: var(--accent-admin);
    color: #fff;
    margin-bottom: 2rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 0.5rem; /* For scrollbar breathing room */
}

/* Custom scrollbar for sidebar nav to make it look sleek */
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--sidebar-border);
    border-radius: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--sidebar-text);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background-color: var(--sidebar-hover);
    color: var(--sidebar-text-active);
}

.sidebar-link--active {
    background-color: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.sidebar-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-username {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f1f5f9;
}

.sidebar-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: transparent;
    border: 1px solid var(--sidebar-border);
    color: #ef4444;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-logout-btn:hover {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

/* ==========================================
 * 3. Main Content Wrapper
 * ========================================== */
.main-content {
    padding: 2.5rem;
    overflow-y: auto;
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

/* ==========================================
 * 4. Cards & Content Areas
 * ========================================== */
.form-card {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.table-card {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* ==========================================
 * 5. Forms, Inputs & Groups
 * ========================================== */
.form-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.form-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .form-grid--2, .form-grid--3 {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.required-star {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: #fff;
    color: var(--text-main);
    outline: none;
    transition: all 0.15s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control--readonly {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
    cursor: not-allowed;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.25rem;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-checkbox {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label {
    font-size: 0.95rem;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.checkbox-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.checkbox-stack--horizontal {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0.5rem 0;
}

/* ==========================================
 * 6. Buttons
 * ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-muted);
}

.btn-outline:hover {
    background-color: #f1f5f9;
    color: var(--text-main);
}

.btn-outline-light {
    background-color: transparent;
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
}

.btn-success {
    background-color: var(--success);
    color: #fff;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    background-color: #059669;
}

.btn-danger {
    background-color: var(--danger);
    color: #fff;
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

/* ==========================================
 * 7. Tables & Master Grid
 * ========================================== */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.data-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 0.9rem 1.25rem;
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    color: #334155;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background-color: #f8fafc;
}

.table-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem !important;
    font-size: 1rem;
}

.table-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

/* Action button icons in table */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    background-color: #f1f5f9;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn-action:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.btn-action--delete:hover {
    background-color: var(--danger-light);
    color: var(--danger);
}

/* Pagination Control */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #fff;
    border-top: 1px solid var(--border-color);
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-md);
    background-color: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(.pagination-btn--disabled) {
    background-color: #f1f5f9;
    color: var(--text-main);
}

.pagination-btn--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f8fafc;
}

.pagination-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================
 * 8. Badges, Indicators & Tags
 * ========================================== */

/* Category Badge */
.category-badge {
    display: inline-flex;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.category-badge--vvip {
    background-color: #fef3c7;
    color: #d97706;
}

.category-badge--invitee {
    background-color: #ecfeff;
    color: #0891b2;
}

.category-badge--employee {
    background-color: #e0e7ff;
    color: #4f46e5;
}

/* Food preference badge */
.food-badge {
    display: inline-flex;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.food-badge--veg {
    background-color: var(--success-light);
    color: #059669;
}

.food-badge--nonveg {
    background-color: var(--danger-light);
    color: #dc2626;
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-indicator--yes {
    color: #059669;
}

.status-indicator--no {
    color: #64748b;
}

.status-indicator--pending {
    color: #d97706;
}

.tag-yes {
    background-color: var(--success-light);
    color: #059669;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
}

.tag-no {
    background-color: #f1f5f9;
    color: #64748b;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
}

.tag {
    display: inline-block;
    background-color: #f1f5f9;
    color: #475569;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ==========================================
 * 9. Dashboards (Admin, Canteen, Desk)
 * ========================================== */

/* Stats Grid cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.stat-card__icon {
    font-size: 1.75rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card__body {
    display: flex;
    flex-direction: column;
}

.stat-card__value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.stat-card__label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Stat color variants */
.stat-card--blue .stat-card__icon { background-color: var(--primary-light); color: var(--primary); }
.stat-card--green .stat-card__icon { background-color: var(--success-light); color: var(--success); }
.stat-card--orange .stat-card__icon { background-color: var(--warning-light); color: var(--warning); }
.stat-card--purple .stat-card__icon { background-color: #f3e8ff; color: #a855f7; }
.stat-card--teal .stat-card__icon { background-color: var(--info-light); color: var(--info); }
.stat-card--red .stat-card__icon { background-color: var(--danger-light); color: var(--danger); }

/* Quick Action Area */
.quick-actions {
    margin-top: 2rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.quick-action-card {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.quick-action-card i {
    font-size: 2rem;
    color: var(--primary);
}

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

/* ==========================================
 * 10. Public Welcome / Hero Landing Page
 * ========================================== */
.hero-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 10% 20%, rgb(240, 245, 255) 0%, rgb(255, 255, 255) 90%);
    padding: 3rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(99, 102, 241, 0.05));
    border-radius: 50%;
}

.particle:nth-child(1) { width: 150px; height: 150px; top: 15%; left: 10%; animation: float 12s infinite ease-in-out; }
.particle:nth-child(2) { width: 250px; height: 250px; bottom: 10%; right: 5%; animation: float 18s infinite ease-in-out reverse; }
.particle:nth-child(3) { width: 100px; height: 100px; top: 60%; left: 20%; animation: float 10s infinite ease-in-out 2s; }
.particle:nth-child(4) { width: 180px; height: 180px; top: 5%; right: 25%; animation: float 15s infinite ease-in-out 1s; }
.particle:nth-child(5) { width: 80px; height: 80px; bottom: 45%; right: 40%; animation: float 9s infinite ease-in-out 4s; }

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin-bottom: 4rem;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.08);
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 900;
    line-height: 1.15;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-gradient {
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.btn-hero {
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.feature-pill {
    background-color: rgba(255,255,255,0.75);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    width: 100%;
    z-index: 2;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.25rem; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
    .hero-cards { grid-template-columns: 1fr; }
}

.role-card {
    background-color: rgba(255,255,255,0.85);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(99, 102, 241, 0.4);
}

.role-card__icon {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
}

.role-card--admin .role-card__icon { color: var(--primary); }
.role-card--desk .role-card__icon { color: var(--info); }
.role-card--canteen .role-card__icon { color: var(--success); }

.role-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.role-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

/* ==========================================
 * 11. Auth Pages (Login & Email Verify)
 * ========================================== */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    padding: 1.5rem;
}

.auth-container {
    width: 100%;
    max-width: 460px;
}

.auth-card {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

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

.auth-logo-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--accent-admin);
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.auth-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-with-toggle {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
}

.toggle-password:hover {
    color: var(--text-main);
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-back-link {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.15s ease;
}

.auth-back-link:hover {
    color: var(--primary);
}

/* Demo Credentials Hint block */
.demo-credentials {
    margin-top: 2rem;
    border-top: 1px dashed var(--border-color);
    padding-top: 1.5rem;
}

.demo-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.demo-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.demo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    background-color: #f8fafc;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
}

.demo-role {
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-sm);
    color: #fff;
}

.admin-badge { background: var(--accent-admin); }
.desk-badge { background: var(--accent-desk); }
.canteen-badge { background: var(--accent-canteen); }

.demo-item code {
    font-family: Consolas, monospace;
    font-weight: 600;
    color: #475569;
}

/* ==========================================
 * 12. Alerts & Messages
 * ========================================== */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.alert-success {
    background-color: var(--success-light);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background-color: var(--danger-light);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background-color: var(--warning-light);
    color: #92400e;
    border: 1px solid #fde68a;
}

/* ==========================================
 * 13. Registration Wizard (Progress bar & Sections)
 * ========================================== */
.registration-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    gap: 1rem;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.progress-step--active {
    color: var(--primary);
}

.progress-step--done {
    color: var(--success);
}

.progress-connector {
    width: 3rem;
    height: 2px;
    background-color: var(--border-color);
}

.progress-connector--done {
    background-color: var(--success);
}

@media (max-width: 576px) {
    .registration-progress-bar {
        padding: 1rem;
        gap: 0.5rem;
    }
    .progress-connector {
        width: 1rem;
    }
}

.page-container {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.form-page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-page-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.form-page-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.form-page-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.form-section-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.form-section-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.subsection-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Custom File Upload Styling */
.file-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.file-upload-area:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.file-upload-area--selected {
    border-color: var(--success);
    background-color: var(--success-light);
}

.file-upload-icon {
    font-size: 2rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.file-upload-area:hover .file-upload-icon {
    color: var(--primary);
}

.file-upload-area--selected .file-upload-icon {
    color: var(--success);
}

.file-upload-text {
    font-weight: 600;
    color: #334155;
}

.file-upload-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.file-selected-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #047857;
}

.file-input-hidden {
    display: none;
}

/* ==========================================
 * 14. Detail Views & Management
 * ========================================== */
.detail-hero-card {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

@media (max-width: 576px) {
    .detail-hero-card {
        flex-direction: column;
        text-align: center;
    }
}

.detail-hero-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: var(--accent-desk);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(6, 182, 212, 0.3);
}

.detail-hero-info {
    display: flex;
    flex-direction: column;
}

.detail-hero-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.detail-hero-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
}

.detail-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Layout for Details page */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.detail-card {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.detail-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px dashed #f1f5f9;
    font-size: 0.9rem;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-muted);
    font-weight: 600;
}

.detail-value {
    color: var(--text-main);
    font-weight: 700;
}

/* Kit Card section */
.kit-card {
    border-color: #cbd5e1;
    background-color: #fff;
    margin-bottom: 1.5rem;
}

.kit-given-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--success-light);
    border: 1px solid #a7f3d0;
    padding: 1rem;
    border-radius: var(--radius-md);
    color: #065f46;
}

.kit-given-badge {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.kit-pending-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.kit-form-row {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

@media (max-width: 576px) {
    .kit-form-row {
        flex-direction: column;
        align-items: stretch;
    }
}

.kit-submit-btn {
    height: 2.6rem;
    padding: 0 1.5rem;
}

/* ==========================================
 * 15. Search page layout
 * ========================================== */
.search-form {
    margin-bottom: 0;
}

.search-bar {
    display: flex;
    gap: 0.75rem;
}

.search-input {
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

.search-btn {
    white-space: nowrap;
    padding: 0 1.5rem;
}

@media (max-width: 576px) {
    .search-bar {
        flex-direction: column;
    }
    .search-btn {
        width: 100%;
        height: auto;
        padding: 0.75rem;
    }
}

/* Results grid in desk dashboard */
.participant-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.participant-card {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.participant-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.participant-card__avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.participant-card__info {
    flex-grow: 1;
    min-width: 0;
}

.participant-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.participant-card__org {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.participant-card__badges {
    position: absolute;
    top: 0;
    right: 0;
}

.participant-card__details {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #475569;
    background-color: #f8fafc;
    padding: 0.75rem;
    border-radius: var(--radius-md);
}

.participant-card__detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    word-break: break-all;
}

.participant-card__detail i {
    color: var(--text-muted);
}

.participant-card__status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
}

.participant-card__actions {
    display: flex;
    justify-content: flex-end;
}

/* ==========================================
 * 16. Canteen Dashboard Charts
 * ========================================== */
.canteen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.canteen-stat-card {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.canteen-stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.canteen-stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.canteen-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.canteen-stat-percent {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
}

.canteen-stat-card--total .canteen-stat-icon { background-color: var(--primary-light); color: var(--primary); }
.canteen-stat-card--veg .canteen-stat-icon { background-color: var(--success-light); color: var(--success); }
.canteen-stat-card--veg .canteen-stat-percent { background-color: var(--success-light); color: #047857; }
.canteen-stat-card--nonveg .canteen-stat-icon { background-color: var(--danger-light); color: var(--danger); }
.canteen-stat-card--nonveg .canteen-stat-percent { background-color: var(--danger-light); color: #b91c1c; }

.canteen-chart-card {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.food-bar-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.food-bar-container:last-child {
    margin-bottom: 0;
}

.food-bar-label {
    width: 5rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: #475569;
}

.food-bar-track {
    flex-grow: 1;
    height: 1.75rem;
    background-color: #f1f5f9;
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.food-bar {
    height: 100%;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 2rem;
}

.food-bar--veg {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.food-bar--nonveg {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

.food-bar-pct {
    width: 3.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    text-align: right;
}

.empty-state {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    color: #cbd5e1;
    display: block;
    margin-bottom: 1rem;
}

.refresh-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Bulk import guide styles */
.info-box {
    background-color: #f8fafc;
    border-left: 4px solid var(--primary);
    padding: 1.25rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 1.5rem;
}

.info-box-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-list {
    padding-left: 1.25rem;
    font-size: 0.9rem;
    color: #475569;
}

.info-list li {
    margin-bottom: 0.35rem;
}

.code-preview {
    background-color: #0f172a;
    color: #f1f5f9;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-family: Consolas, monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    margin-top: 0.75rem;
}

.code-textarea {
    font-family: Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    background-color: #fafafa;
}
