body {
    background: #f8f9fa;
}
[data-bs-theme="dark"] body {
    background: #1a1a1a;
}
.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
}
.card {
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    border: none;
}
[data-bs-theme="dark"] .card {
    background: #2a2a2a;
    color: #eee;
}
.card-header {
    font-weight: 600;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}
[data-bs-theme="dark"] .card-header {
    background: #333;
    border-bottom: 1px solid #444;
}
.table > thead {
    background: #f8f9fa;
}
.badge-AHG, .badge-AH {
    background: #17a2b8;
}
.badge-TLUSA, .badge-TL {
    background: #ffc107;
    color: #000;
}
#qrInput {
    font-size: 1.3rem;
    letter-spacing: 2px;
    font-family: monospace;
}
.rank-1 {
    background: #fff3cd !important;
}
/* Slideshow */
#slideshow-container {
    position: relative;
    width: 100%;
    min-height: 50vh;
    background: #000;
    overflow: hidden;
}
#slideshow-container img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: none;
}
#slideshow-container img.active { display: block; }
.slideshow-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 12px 20px;
}
/* Mobile-friendly scoring touches */
@media (max-width: 768px) {
    #scoreForm .mb-2 {
        margin-bottom: 0.75rem !important;
    }
    #scoreForm label {
        font-size: 0.9rem;
    }
    #scoreForm .form-control,
    #scoreForm .form-select {
        font-size: 1rem;
        padding: 0.6rem 0.75rem;
        height: auto;
    }
    #scoreForm button[type="submit"] {
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
    }
    .card-header h5 { font-size: 1rem; }
    .table { font-size: 0.85rem; }
    .navbar .container { padding-left: 8px; padding-right: 8px; }
}
/* Print */
@media print {
    .navbar, .btn, footer, nav, .no-print { display: none !important; }
    .card { break-inside: avoid; border: 1px solid #ddd; }
    #slideshow-container img { max-height: none; }
}

/* Tooltip styling */
.tooltip-inner { max-width: 400px; text-align: left; font-size: 0.85rem; }
[data-bs-theme="dark"] .tooltip-inner { background: #444; border: 1px solid #555; }
[data-bs-theme="dark"] .tooltip .tooltip-arrow::before { border-right-color: #444; }
