:root {
    --grad-primary: #1a365d;
    --grad-gold: #b8860b;
    --grad-light: #f8f9fa;
}

[data-bs-theme="light"] body {
    background-color: var(--grad-light);
}

[data-bs-theme="dark"] body {
    background: #1a2332;
    color: #e2e8f0;
}

.navbar {
    background: linear-gradient(135deg, var(--grad-primary) 0%, #2c5282 100%) !important;
}

[data-bs-theme="dark"] .navbar {
    background: linear-gradient(135deg, rgba(26,54,93,0.95), rgba(44,82,130,0.9)) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

[data-bs-theme="dark"] footer {
    border-color: rgba(255,255,255,0.06) !important;
    color: rgba(255,255,255,0.35) !important;
}
[data-bs-theme="dark"] footer small { color: rgba(255,255,255,0.35) !important; }

.stat-card {
    border-left: 4px solid var(--grad-primary);
    transition: transform 0.2s;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--grad-primary);
}
.stat-card .stat-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #666;
}

.card-gold {
    border-left: 4px solid var(--grad-gold);
}

.table th {
    background-color: var(--grad-primary);
    color: white;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-honors {
    color: white;
}
.stole-gold { background-color: #d4af37; color: #fff; }
.stole-white { background-color: #e8e4de; color: #333; }
.stole-red { background-color: #c0392b; color: #fff; }
.stole-blue { background-color: #2980b9; color: #fff; }
.stole-gold::before,
.stole-white::before,
.stole-red::before,
.stole-blue::before {
    content: '';
    display: inline-block;
    width: 0.85em;
    height: 1.1em;
    margin-right: 0.3em;
    vertical-align: middle;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 24'%3E%3Cpath d='M8 1L4 9v14h2V11l2-8 2 8v12h2V9z'/%3E%3C/svg%3E") no-repeat center/contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 24'%3E%3Cpath d='M8 1L4 9v14h2V11l2-8 2 8v12h2V9z'/%3E%3C/svg%3E") no-repeat center/contain;
}

.btn-grad {
    background: linear-gradient(135deg, var(--grad-primary), #2c5282);
    color: white;
    border: none;
}
.btn-grad:hover {
    background: linear-gradient(135deg, #2c5282, var(--grad-primary));
    color: white;
}

/* Presentation mode */
.presentation-fullscreen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #1a2332 0%, #1a365d 50%, #1a2332 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Georgia', serif;
}

.slide {
    display: none;
    text-align: center;
    animation: fadeIn 0.6s ease-in;
    max-width: 80vw;
}
.slide.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

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

.slide-name {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}
.slide-degree {
    font-size: 1.8rem;
    color: var(--grad-gold);
    margin-bottom: 0.3rem;
}
.slide-major {
    font-size: 1.5rem;
    opacity: 0.9;
}
.slide-honors {
    font-size: 1.3rem;
    font-weight: 600;
    font-style: italic;
    margin-top: 0.7rem;
    display: inline-block;
    padding: 0.3rem 1.2rem;
    border-radius: 2rem;
    letter-spacing: 0.5px;
}
.slide-honors.stole-gold { background: rgba(212,175,55,0.2); color: #f5d76e; border: 1px solid rgba(212,175,55,0.4); }
.slide-honors.stole-white { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.slide-honors.stole-red { background: rgba(192,57,43,0.2); color: #f1948a; border: 1px solid rgba(192,57,43,0.4); }
.slide-honors.stole-blue { background: rgba(41,128,185,0.2); color: #85c1e9; border: 1px solid rgba(41,128,185,0.4); }
.slide-honors::before {
    width: 1em;
    height: 1.3em;
}
.slide-quote {
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.7;
    margin-top: 1.5rem;
    max-width: 60vw;
}
.slide-hometown {
    font-size: 1rem;
    opacity: 0.6;
    margin-top: 0.5rem;
}
.slide-pronunciation {
    font-size: 1rem;
    color: #aaa;
    margin-top: 0.5rem;
}

.slide-counter {
    position: fixed;
    bottom: 20px;
    right: 30px;
    font-size: 1rem;
    opacity: 0.5;
}

.slide-nav-hint {
    position: fixed;
    bottom: 20px;
    left: 30px;
    font-size: 0.85rem;
    opacity: 0.4;
}

/* Seating chart */
.seat {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    margin: 2px;
    cursor: pointer;
    transition: transform 0.15s;
}
.seat:hover {
    transform: scale(1.3);
}
.seat-occupied {
    background-color: var(--grad-primary);
    color: white;
}
.seat-empty {
    background-color: #dee2e6;
    color: #999;
}
.stage {
    background: linear-gradient(135deg, var(--grad-primary), #2c5282);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* Lineup */
.lineup-card {
    border-left: 4px solid var(--grad-primary);
    transition: all 0.2s;
}
.lineup-card:hover {
    border-left-color: var(--grad-gold);
    background-color: #fff8e1;
}
.lineup-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--grad-primary);
    min-width: 50px;
    text-align: center;
}

/* ── Dark-mode overrides for dashboard pages ─────────── */
[data-bs-theme="dark"] .stat-card {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
    border-left: 4px solid rgba(184,134,11,0.5);
}
[data-bs-theme="dark"] .stat-card .stat-number {
    color: #b8860b;
}
[data-bs-theme="dark"] .stat-card .stat-label {
    color: rgba(255,255,255,0.5);
}
[data-bs-theme="dark"] .card-gold {
    border-left-color: #b8860b;
}
[data-bs-theme="dark"] .table th {
    background-color: rgba(15,27,45,0.8);
}
[data-bs-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: #e2e8f0;
    --bs-table-border-color: rgba(255,255,255,0.08);
    --bs-table-hover-bg: rgba(255,255,255,0.04);
}
[data-bs-theme="dark"] .seat-empty {
    background-color: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.3);
}
[data-bs-theme="dark"] .lineup-card {
    background: rgba(255,255,255,0.05);
    border-left-color: rgba(184,134,11,0.5);
    border-color: rgba(255,255,255,0.08);
}
[data-bs-theme="dark"] .lineup-card:hover {
    border-left-color: #b8860b;
    background-color: rgba(184,134,11,0.06);
}
[data-bs-theme="dark"] .lineup-number {
    color: #b8860b;
}
[data-bs-theme="dark"] .text-muted {
    color: rgba(255,255,255,0.5) !important;
}
