/* ============================================================
   UIL Competition Results - Main Styles
   ============================================================ */

:root {
    --bg-dark: #0a0a1a;
    --bg-card: #12122a;
    --bg-card-hover: #1a1a3a;
    --gold: #d4af37;
    --gold-light: #f0d060;
    --text-primary: #ffffff;
    --text-secondary: #aab3c5;
    --text-muted: #667788;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    --radius: 12px;
    --radius-sm: 8px;
}

/* Light theme override for display (set by admin) */
[data-theme="light"] {
    --bg-dark: #f0f1f5;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f6fa;
    --gold: #b8962d;
    --gold-light: #d4af37;
    --text-primary: #1a1b2e;
    --text-secondary: #555566;
    --text-muted: #888899;
    --border: rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] body {
    background: var(--bg-dark);
}

[data-theme="light"] .bg-mesh {
    background: linear-gradient(135deg, #f0f1f5 0%, #e8e9f0 40%, #f0f1f5 100%);
}

[data-theme="light"] .bg-mesh::after {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(184, 150, 45, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(100, 100, 200, 0.04) 0%, transparent 50%);
}

[data-theme="light"] .uil-watermark {
    opacity: 0.04;
}

[data-theme="light"] .slide-progress {
    background: var(--gold);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ---- Utility ---- */
.text-gold {
    color: var(--gold);
}

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

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.hidden {
    display: none !important;
}

/* ============================================================
   DISPLAY PAGE STYLES (index.html - TV Signage)
   ============================================================ */

/* UIL logo watermark */
.uil-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45vmin;
    height: 45vmin;
    object-fit: contain;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
    filter: grayscale(100%) brightness(2);
}

.display-container {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #0a0a1a 0%, #0f1628 50%, #0a0a1a 100%);
}

/* Background animated particles */
.display-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(100, 100, 255, 0.03) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

/* Header bar */
.display-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 100;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.display-header h1 {
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    flex-shrink: 0;
}

.display-header .event-name-header {
    font-size: 3.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    text-align: center;
    flex: 1;
    padding: 0 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.display-header .event-name-header .event-type-badge {
    font-size: 0.55em;
    vertical-align: middle;
    margin-left: 10px;
    padding: 4px 14px;
    border-radius: 16px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.display-header .event-name-header .event-type-badge.prelim {
    background: rgba(100, 200, 255, 0.2);
    color: #64c8ff;
}

.display-header .date-info {
    font-size: 1rem;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Slide area */
.slide-viewport {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    padding: 16px 32px 40px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide.exiting {
    opacity: 0;
    transform: translateX(-100%);
}

/* Event title on slide — HIDDEN, now in header */
.event-title {
    display: none;
}

.event-type-badge {
    display: inline-block;
    font-size: 0.9rem;
    padding: 4px 16px;
    border-radius: 20px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    font-weight: 600;
    margin-left: 12px;
    vertical-align: middle;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-type-badge.prelim {
    background: rgba(100, 200, 255, 0.15);
    color: #64c8ff;
}

/* Results list — fills entire viewport */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    justify-content: stretch;
    width: 100%;
}

/* Scale up when fewer results — fill the screen */
.results-list.count-1 .result-row {
    font-size: 6rem;
}

.results-list.count-2 .result-row {
    font-size: 4.5rem;
}

.results-list.count-2 .result-row .school-badge {
    min-width: 380px;
    padding: 16px 40px;
    font-size: 0.65em;
}

.results-list.count-2 .result-row .place-number {
    min-width: 220px;
}

.results-list.count-3 .result-row {
    font-size: 3.8rem;
}

.results-list.count-3 .result-row .school-badge {
    min-width: 340px;
    padding: 14px 36px;
}

.results-list.count-3 .result-row .place-number {
    min-width: 200px;
}

.results-list.count-4 .result-row {
    font-size: 3rem;
}

.results-list.count-4 .result-row .school-badge {
    min-width: 300px;
}

.results-list.count-4 .result-row .place-number {
    min-width: 180px;
}

/* Individual result row - tiered sizing for 75" TV at 40ft */
.result-row {
    display: flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.result-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 8px;
    border-radius: 4px 0 0 4px;
    background: var(--school-color, var(--gold));
}

/* 1st place - HUGE & most prominent */
.result-row.place-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.18) 0%, rgba(255, 215, 0, 0.06) 100%);
    border: 3px solid rgba(255, 215, 0, 0.4);
    padding: 14px 36px;
    font-size: 3rem;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.12);
}

.result-row.place-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.14) 0%, rgba(192, 192, 192, 0.04) 100%);
    border: 2px solid rgba(192, 192, 192, 0.25);
    padding: 12px 32px;
    font-size: 2.5rem;
}

.result-row.place-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.14) 0%, rgba(205, 127, 50, 0.04) 100%);
    border: 2px solid rgba(205, 127, 50, 0.25);
    padding: 10px 30px;
    font-size: 2.2rem;
}

.result-row.place-4 {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 28px;
    font-size: 1.9rem;
}

.result-row.place-5 {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 28px;
    font-size: 1.7rem;
}

.result-row.place-6 {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 28px;
    font-size: 1.6rem;
}

/* Place number — BIG for TV */
.place-number {
    font-weight: 900;
    min-width: 140px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
}

.place-1 .place-number {
    font-size: 1.2em;
    color: #ffd700;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    min-width: 170px;
}

.place-2 .place-number {
    font-size: 1.1em;
    color: #d0d0d0;
    text-shadow: 0 0 20px rgba(192, 192, 192, 0.3);
    min-width: 160px;
}

.place-3 .place-number {
    font-size: 1.05em;
    color: #cd7f32;
    text-shadow: 0 0 20px rgba(205, 127, 50, 0.3);
    min-width: 150px;
}

/* Medal icons */
.place-medal {
    font-size: 1.1em;
}

/* School color badge — BIG for TV, right-aligned */
.school-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 28px;
    border-radius: 10px;
    font-weight: 800;
    margin-left: 24px;
    min-width: 260px;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75em;
    border: 3px solid;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Dark school badges get a bright outline glow so they pop off the dark bg */
.school-badge.badge-dark {
    border-width: 4px;
    box-shadow:
        0 0 16px rgba(255, 255, 255, 0.15),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

/* Student name — BIG for TV */
.student-name {
    flex: 1;
    font-weight: 700;
    letter-spacing: 0.03em;
    font-size: 1em;
    color: #f0f0f0;
    padding: 0 20px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
}

.place-1 .student-name {
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.place-2 .student-name {
    font-weight: 800;
    color: #f5f5f5;
}

.place-3 .student-name {
    font-weight: 800;
    color: #ececec;
}

/* Individual name size bump for top 3 (+20%) */
.place-1 .student-name {
    font-size: 1.2em;
}

.place-2 .student-name {
    font-size: 1.2em;
}

.place-3 .student-name {
    font-size: 1.2em;
}

/* ---- Team event rows: big centered school name ---- */
.result-row.team-row {
    justify-content: flex-start;
    gap: 24px;
}

.team-school-name {
    flex: 1;
    font-weight: 900;
    font-size: 1.6em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
    padding: 0 20px;
}

.place-1.team-row .team-school-name {
    font-size: 1.8em;
}

.place-2.team-row .team-school-name {
    font-size: 1.6em;
}

.place-3.team-row .team-school-name {
    font-size: 1.4em;
}

/* Scale team names even bigger when fewer results */
.results-list.count-2.team-results .team-school-name {
    font-size: 2em;
}

.results-list.count-3.team-results .team-school-name {
    font-size: 1.8em;
}

/* Finalist style (prelims) — BIG for TV */
.result-row.finalist {
    background: rgba(100, 200, 255, 0.06);
    border: 2px solid rgba(100, 200, 255, 0.2);
    padding: 12px 28px;
    font-size: 2.2rem;
    flex: 1;
}

.finalist-badge {
    color: #64c8ff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    min-width: 200px;
    font-size: 0.85em;
}

/* ---- Sweepstakes slide — horizontal rows for TV ---- */
.sweep-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    justify-content: stretch;
    width: 100%;
}

.sweep-row {
    display: flex;
    align-items: center;
    padding: 10px 32px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    flex: 1;
    min-height: 0;
    gap: 24px;
}

.sweep-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 8px;
    border-radius: 4px 0 0 4px;
    background: var(--school-color, var(--gold));
}

.sweep-row.rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.04) 100%);
    border: 3px solid rgba(255, 215, 0, 0.35);
    font-size: 4.5rem;
    flex: 1.6;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.1);
}

.sweep-row.rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1) 0%, rgba(192, 192, 192, 0.03) 100%);
    border: 2px solid rgba(192, 192, 192, 0.2);
    font-size: 3.4rem;
    flex: 1.2;
}

.sweep-row.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1) 0%, rgba(205, 127, 50, 0.03) 100%);
    border: 2px solid rgba(205, 127, 50, 0.2);
    font-size: 2.8rem;
    flex: 1;
}

.sweep-row.rank-4,
.sweep-row.rank-5,
.sweep-row.rank-6 {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 2.4rem;
    flex: 0.85;
}

.sweep-rank-num {
    font-weight: 900;
    min-width: 160px;
    font-size: 1.1em;
    flex-shrink: 0;
}

.sweep-row.rank-1 .sweep-rank-num {
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.sweep-row.rank-2 .sweep-rank-num {
    color: #d0d0d0;
}

.sweep-row.rank-3 .sweep-rank-num {
    color: #cd7f32;
}

.sweep-school {
    flex: 1;
    font-weight: 900;
    font-size: 1.3em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 20px;
}

.sweep-score-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    min-width: 180px;
}

.sweep-points {
    font-weight: 900;
    font-size: 1.5em;
}

.sweep-row.rank-1 .sweep-points {
    font-size: 1.7em;
}

.sweep-pts-label {
    font-size: 0.4em;
    opacity: 0.6;
    letter-spacing: 0.1em;
    vertical-align: middle;
    margin-left: 6px;
}

.sweep-breakdown {
    font-size: 0.45em;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Progress dots / slide indicator */
.slide-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 100;
}

.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.slide-dot.active {
    background: var(--gold);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
    transform: scale(1.3);
}

/* Progress bar */
.slide-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    z-index: 100;
    transition: width linear;
}

/* ============================================================
   ADMIN PAGE STYLES (admin.html)
   ============================================================ */

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.admin-header h1 {
    font-size: 1.8rem;
    color: var(--gold);
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1) opacity(0.85);
}

/* Login form */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 48px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.login-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    opacity: 0.9;
}

.login-card h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--gold);
}

.login-card p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.login-input {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    font-size: 1.2rem !important;
    padding: 14px 18px !important;
    color: #ffffff !important;
}

.login-input:focus {
    border-color: var(--gold) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25) !important;
}

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

/* Form elements */
.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23aab3c5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, #b8962d 100%);
    color: #000;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-danger {
    background: rgba(220, 53, 69, 0.15);
    color: #ff6b7a;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    background: rgba(220, 53, 69, 0.25);
}

.btn-success {
    background: rgba(40, 167, 69, 0.15);
    color: #5fd97e;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: rgba(40, 167, 69, 0.25);
}

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

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

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

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

.card-header h3 {
    font-size: 1.1rem;
}

.card-body {
    padding: 20px;
}

/* Event grid in admin */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.event-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.event-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--gold);
}

.event-card.active {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

.event-card.has-results {
    border-left: 3px solid #5fd97e;
}

.event-card .event-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.event-card .event-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
    align-items: center;
}

.event-card .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.live {
    background: #5fd97e;
}

.status-dot.empty {
    background: var(--text-muted);
}

.status-dot.partial {
    background: #ffc107;
}

/* Results form */
.results-form {
    max-width: 700px;
}

.result-input-row {
    display: grid;
    grid-template-columns: 60px 1fr 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.result-input-row.place-1 {
    background: rgba(255, 215, 0, 0.06);
    border-color: rgba(255, 215, 0, 0.15);
}

.result-input-row .place-label {
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
}

.result-input-row.place-1 .place-label {
    color: #ffd700;
}

.result-input-row.place-2 .place-label {
    color: #c0c0c0;
}

.result-input-row.place-3 .place-label {
    color: #cd7f32;
}

/* Tabs */
.nav-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    overflow-x: auto;
}

.nav-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-tab:hover {
    color: var(--text-primary);
}

.nav-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* Toggle switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle input:checked+.toggle-slider {
    background: var(--gold);
}

.toggle input:checked+.toggle-slider::before {
    transform: translateX(20px);
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    z-index: 10000;
    animation: slideInToast 0.3s ease, fadeOutToast 0.3s ease 2.7s;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.toast.success {
    background: #28a745;
}

.toast.error {
    background: #dc3545;
}

.toast.info {
    background: #17a2b8;
}

@keyframes slideInToast {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOutToast {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Sweepstakes table */
.sweep-table {
    width: 100%;
    border-collapse: collapse;
}

.sweep-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.sweep-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.sweep-table tr:first-child td {
    font-weight: 700;
    font-size: 1.1rem;
}

.school-color-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

.stagger-6 {
    animation-delay: 0.6s;
}

/* No results placeholder */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results .icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .display-header {
        height: 60px;
        padding: 0 20px;
    }

    .display-header h1 {
        font-size: 1.2rem;
    }

    .slide {
        padding: 20px;
    }

    .event-title {
        font-size: 1.8rem;
    }

    .result-row {
        padding: 10px 14px;
    }

    .place-number {
        min-width: 50px;
    }

    .school-badge {
        min-width: 120px;
        font-size: 0.75em;
        padding: 4px 10px;
    }

    .sweepstakes-grid {
        grid-template-columns: 1fr 1fr;
    }
}
