/* ============================================================
   VBB Exhibition Feedback System — Main Stylesheet
   Design: Premium Glassmorphism with Royal Indigo + Gold palette
   ============================================================ */

:root {
    --royal: #1a1060;
    --royal-mid: #2d1b8e;
    --violet: #4a2bdb;
    --gold: #f0b429;
    --gold-light: #ffd166;
    --glass: rgba(255,255,255,0.08);
    --glass-border: rgba(255,255,255,0.15);
    --glass-hover: rgba(255,255,255,0.14);
    --text-primary: #ffffff;
    --text-secondary: rgba(255,255,255,0.72);
    --text-muted: rgba(255,255,255,0.45);
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --shadow: 0 8px 32px rgba(0,0,0,0.35);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--royal);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── Animated Background ── */
.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #0d0830 0%, #1a1060 35%, #2d1b8e 70%, #1a0a4a 100%);
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: float 12s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, #4a2bdb, transparent); top: -150px; left: -100px; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, #f0b429, transparent); bottom: -100px; right: -80px; animation-delay: -4s; }
.orb-3 { width: 350px; height: 350px; background: radial-gradient(circle, #7c3aed, transparent); top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: -8s; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    33% { transform: translateY(-30px) scale(1.05); }
    66% { transform: translateY(20px) scale(0.97); }
}

.particles { position: absolute; inset: 0; }

/* ── Animate In ── */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: slideIn 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
    animation-delay: var(--delay, 0s);
}
@keyframes slideIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Landing Page ── */
.landing-main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 100px;
}

.hero-section {
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
    text-align: center;
}

/* ── School Identity ── */
.school-identity {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.logo-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--gold), var(--violet));
    flex-shrink: 0;
    box-shadow: 0 0 30px rgba(240,180,41,0.4);
}
.school-logo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.school-text { flex: 1; }
.school-tagline-top { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); margin-bottom: 4px; font-weight: 500; }
.school-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; color: var(--text-primary); line-height: 1.1; }
.school-subtitle { font-size: 13px; color: var(--text-secondary); font-weight: 400; margin-top: 4px; }

/* ── Exhibition Banner ── */
.exhibition-banner { width: 100%; }

.banner-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(240,180,41,0.15);
    border: 1px solid rgba(240,180,41,0.3);
    color: var(--gold-light);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}
.banner-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold);
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(0.8); } }

.exhibition-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 2.8rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 12px;
}
.exhibition-title em { color: var(--gold); font-style: normal; }

.exhibition-desc { font-size: 15px; color: var(--text-secondary); max-width: 420px; margin: 0 auto; line-height: 1.7; }

/* ── Entry Card ── */
.entry-card {
    width: 100%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.entry-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    text-align: left;
}
.entry-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--violet), var(--gold));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.entry-card-header h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.entry-card-header p  { font-size: 13px; color: var(--text-muted); }

.stall-form { display: flex; gap: 12px; margin-bottom: 14px; }

.input-wrapper {
    flex: 1;
    position: relative;
}
.input-icon {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 14px;
}
.input-wrapper input {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 14px 16px 14px 40px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 1px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input-wrapper input::placeholder { color: var(--text-muted); letter-spacing: 0; font-weight: 400; font-size: 14px; }
.input-wrapper input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(240,180,41,0.15);
}
.input-wrapper input.shake {
    animation: shake 0.4s ease-in-out;
    border-color: var(--danger);
}
@keyframes shake {
    0%,100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

.btn-continue {
    background: linear-gradient(135deg, var(--gold) 0%, #e09b20 100%);
    color: #1a1060;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
    white-space: nowrap;
}
.btn-continue:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(240,180,41,0.4); }
.btn-continue:active { transform: translateY(0); }
.btn-continue:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.error-msg {
    display: none;
    align-items: center;
    gap: 8px;
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 12px;
}
.error-msg::before { content: '\f071'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }

.entry-hint {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--text-muted);
}

/* ── Stats Row ── */
.stats-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.stat-chip {
    display: flex; align-items: center; gap: 8px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}
.stat-chip i { color: var(--gold); font-size: 12px; }

/* ── Footer ── */
.landing-footer {
    position: relative; z-index: 1;
    text-align: center;
    padding: 24px 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 13px;
}
.footer-logo { width: 40px; height: 40px; border-radius: 50%; margin-bottom: 8px; opacity: 0.8; }
.footer-sub { font-family: var(--font-display); color: var(--gold); margin-top: 4px; font-size: 14px; }

/* ============================================================
   REVIEW PAGE
   ============================================================ */
.review-main {
    position: relative; z-index: 1;
    min-height: 100vh;
    padding: 30px 20px 80px;
}

.review-container { max-width: 620px; margin: 0 auto; }

.review-nav {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 30px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--gold); }
.nav-logo-text .name { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--text-primary); }
.nav-logo-text .sub { font-size: 11px; color: var(--text-muted); }
.btn-back {
    display: flex; align-items: center; gap: 6px;
    background: var(--glass); border: 1px solid var(--glass-border);
    color: var(--text-secondary); padding: 8px 14px;
    border-radius: 100px; font-size: 13px; text-decoration: none;
    transition: background 0.2s;
}
.btn-back:hover { background: var(--glass-hover); color: white; }

/* Stall Info Card */
.stall-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(20px);
    margin-bottom: 20px;
}
.stall-card-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.stall-badge {
    background: linear-gradient(135deg, var(--violet), var(--royal-mid));
    border: 2px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    flex-shrink: 0;
    text-align: center;
}
.stall-badge small { display: block; font-size: 9px; color: var(--text-muted); font-family: var(--font-body); font-weight: 400; letter-spacing: 1px; text-transform: uppercase; }
.stall-info-text h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.stall-category {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(240,180,41,0.12); border: 1px solid rgba(240,180,41,0.25);
    color: var(--gold-light); padding: 3px 10px; border-radius: 100px;
    font-size: 12px; margin-bottom: 10px;
}
.stall-desc { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

.stall-meta {
    display: flex; gap: 16px; flex-wrap: wrap;
    padding-top: 16px; border-top: 1px solid var(--glass-border);
    margin-top: 16px;
}
.meta-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.meta-item i { color: var(--gold); width: 14px; }

/* Existing Review Card */
.already-reviewed {
    background: rgba(240,180,41,0.08);
    border: 1px solid rgba(240,180,41,0.25);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
}
.already-reviewed .icon-big { font-size: 3rem; color: var(--gold); margin-bottom: 12px; }
.already-reviewed h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 8px; }
.already-reviewed p { color: var(--text-secondary); font-size: 14px; }
.stars-display { color: var(--gold); font-size: 1.5rem; margin: 10px 0; }

/* Rating Card */
.rating-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(20px);
}
.rating-card h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 6px; }
.rating-card p { color: var(--text-secondary); font-size: 14px; margin-bottom: 24px; }

/* Star Rating */
.star-rating { display: flex; gap: 10px; margin-bottom: 10px; justify-content: center; }
.star-btn {
    background: none; border: none; cursor: pointer;
    font-size: 2.2rem; color: rgba(255,255,255,0.2);
    transition: transform 0.15s, color 0.15s;
    line-height: 1;
    padding: 4px;
}
.star-btn:hover, .star-btn.active { color: var(--gold); transform: scale(1.15); }
.star-btn.lit { color: var(--gold); }
.rating-label {
    text-align: center; font-size: 13px; color: var(--text-muted);
    min-height: 20px; margin-bottom: 20px;
    transition: color 0.2s;
}
.rating-label.rated { color: var(--gold-light); font-weight: 500; }

/* Feedback Textarea */
.feedback-group { margin-bottom: 20px; }
.feedback-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; color: var(--text-secondary); }
.feedback-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    resize: vertical;
    min-height: 110px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.feedback-group textarea::placeholder { color: var(--text-muted); }
.feedback-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(240,180,41,0.12);
}

.char-count { text-align: right; font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Name field */
.name-group { margin-bottom: 20px; }
.name-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; color: var(--text-secondary); }
.name-group input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.name-group input::placeholder { color: var(--text-muted); }
.name-group input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(240,180,41,0.12);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--violet) 0%, #6b21a8 100%);
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    padding: 15px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(74,43,219,0.4); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Success State */
.success-state {
    text-align: center;
    padding: 40px 20px;
    animation: slideIn 0.6s ease;
}
.success-icon { font-size: 4rem; color: var(--success); margin-bottom: 16px; animation: bounceIn 0.5s ease; }
@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}
.success-state h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 8px; }
.success-state p { color: var(--text-secondary); }
.success-stars { font-size: 2rem; color: var(--gold); margin: 14px 0; }

/* ============================================================
   ADMIN STYLES
   ============================================================ */
body.admin-body {
    background: #0f0a2e;
}

.admin-wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: rgba(10,6,40,0.95);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    transition: transform 0.3s ease;
}

.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex; align-items: center; gap: 14px;
}
.sidebar-logo { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--gold); }
.sidebar-brand-text .name { font-family: var(--font-display); font-size: 14px; font-weight: 700; }
.sidebar-brand-text .sub { font-size: 10px; color: var(--text-muted); letter-spacing: 0.5px; }

.sidebar-nav { flex: 1; padding: 20px 12px; overflow-y: auto; }
.nav-section-label {
    font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--text-muted); padding: 16px 10px 6px; font-weight: 600;
}
.sidebar-link {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    margin-bottom: 2px;
}
.sidebar-link i { width: 18px; text-align: center; font-size: 15px; }
.sidebar-link:hover { background: var(--glass); color: var(--text-primary); }
.sidebar-link.active { background: linear-gradient(135deg, rgba(74,43,219,0.3), rgba(240,180,41,0.1)); color: var(--gold); border: 1px solid rgba(240,180,41,0.2); }
.sidebar-link.active i { color: var(--gold); }

.sidebar-footer { padding: 20px; border-top: 1px solid var(--glass-border); }

/* Admin Content */
.admin-content {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-topbar {
    background: rgba(10,6,40,0.8);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 28px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(20px);
}
.topbar-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-user { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-secondary); }
.user-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--gold));
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
}

.admin-page { padding: 28px; flex: 1; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 28px; }

.metric-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 22px;
    backdrop-filter: blur(12px);
    transition: transform 0.2s, box-shadow 0.2s;
}
.metric-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.metric-card .icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 14px; }
.metric-card .value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: 4px; }
.metric-card .label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }

.icon-blue { background: rgba(74,43,219,0.2); color: #818cf8; }
.icon-gold { background: rgba(240,180,41,0.15); color: var(--gold); }
.icon-green { background: rgba(34,197,94,0.15); color: #4ade80; }
.icon-pink { background: rgba(236,72,153,0.15); color: #f472b6; }

/* Table */
.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    overflow: hidden;
    margin-bottom: 24px;
}
.glass-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: space-between;
}
.glass-card-header h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.glass-card-body { padding: 0; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    padding: 12px 20px; text-align: left;
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-muted); border-bottom: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.03);
}
.data-table td {
    padding: 14px 20px; font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.03); }

/* Badges */
.badge {
    display: inline-block; padding: 3px 10px;
    border-radius: 100px; font-size: 11px; font-weight: 600;
}
.badge-gold { background: rgba(240,180,41,0.15); color: var(--gold-light); border: 1px solid rgba(240,180,41,0.2); }
.badge-green { background: rgba(34,197,94,0.12); color: #86efac; border: 1px solid rgba(34,197,94,0.2); }
.badge-blue { background: rgba(99,102,241,0.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.2); }
.badge-red { background: rgba(239,68,68,0.12); color: #fca5a5; border: 1px solid rgba(239,68,68,0.2); }

/* Stars (small) */
.stars-sm { color: var(--gold); font-size: 12px; letter-spacing: 1px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 16px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600; font-family: var(--font-body);
    cursor: pointer; text-decoration: none; border: none;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--violet), #6b21a8); color: white; }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(74,43,219,0.4); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #e09b20); color: #1a1060; }
.btn-gold:hover { box-shadow: 0 6px 20px rgba(240,180,41,0.4); }
.btn-danger { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.btn-danger:hover { background: rgba(239,68,68,0.25); }
.btn-ghost { background: var(--glass); color: var(--text-secondary); border: 1px solid var(--glass-border); }
.btn-ghost:hover { background: var(--glass-hover); color: white; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* Forms (admin) */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 7px; }
.form-control {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,180,41,0.12); }
select.form-control option { background: #1a1060; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* Alert */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25); color: #86efac; }
.alert-danger  { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25); color: #fca5a5; }

/* QR Card */
.qr-card {
    text-align: center;
    padding: 24px;
    background: white;
    border-radius: var(--radius);
    display: inline-block;
}
.qr-card p { color: #333; font-size: 13px; margin-top: 8px; font-weight: 600; }

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    position: relative; z-index: 1;
}
.login-card {
    width: 100%; max-width: 420px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow-lg);
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo img { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--gold); margin-bottom: 14px; }
.login-logo h1 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }
.login-logo p { color: var(--text-muted); font-size: 13px; }

/* Rating bar chart */
.rating-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.rating-bar .label { width: 16px; text-align: right; color: var(--gold); font-weight: 600; }
.rating-bar .bar-track { flex: 1; height: 8px; background: rgba(255,255,255,0.08); border-radius: 100px; overflow: hidden; }
.rating-bar .bar-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--gold), var(--violet)); transition: width 1s cubic-bezier(0.22,1,0.36,1); }
.rating-bar .count { width: 24px; color: var(--text-muted); }

/* Search */
.search-box {
    position: relative;
}
.search-box input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px 10px 38px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px; outline: none;
    transition: border-color 0.2s;
}
.search-box input:focus { border-color: var(--gold); }
.search-box i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 13px; }

/* Empty state */
.empty-state { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.empty-state i { font-size: 3rem; margin-bottom: 14px; opacity: 0.4; }
.empty-state p { font-size: 14px; }

/* Page header */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.page-header h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }

/* Mobile sidebar toggle */
.menu-toggle { display: none; background: var(--glass); border: 1px solid var(--glass-border); color: var(--text-primary); padding: 8px 12px; border-radius: var(--radius-sm); cursor: pointer; font-size: 16px; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-content { margin-left: 0; }
    .menu-toggle { display: flex; align-items: center; gap: 6px; }
    .school-identity { flex-direction: column; text-align: center; }
    .stall-form { flex-direction: column; }
    .btn-continue { justify-content: center; }
    .card-grid { grid-template-columns: 1fr 1fr; }
    .data-table { font-size: 13px; }
    .data-table th, .data-table td { padding: 10px 14px; }
    .admin-page { padding: 16px; }
    .glass-card-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .stall-card-header { flex-direction: column; }
}
@media (max-width: 480px) {
    .card-grid { grid-template-columns: 1fr; }
    .login-card { padding: 28px 20px; }
    .entry-card { padding: 20px; }
    .stats-row { gap: 8px; }
    .stat-chip { font-size: 12px; padding: 6px 12px; }
}

/* Print styles for QR */
@media print {
    body * { visibility: hidden; }
    #printArea, #printArea * { visibility: visible; }
    #printArea { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: white; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }