/* =============================================
   Basketball Stats - Clean Custom CSS
   Mobile-First, Modern Design
============================================= */

:root {
    --primary-color: #1e3a8a;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --light-bg: #f8fafc;
}

body {
    background-color: #f8fafc;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1e2937;
    margin: 0;
    padding: 0;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* ====================== STATS PAGE ====================== */
#active-area {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: thin;
}

.active-column {
    width: 68px;
    flex-shrink: 0;
    min-height: 340px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 14px;
    padding: 8px 4px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stat-box {
    height: 42px;
    margin-bottom: 5px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s;
}

.stat-box:active {
    transform: scale(0.92);
}

.stat-box small {
    font-size: 0.68rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 2px;
}

.stat-box strong {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
}

/* Stat Colors */
.stat-box[data-stat="points"]     { background: #0d6efd; color: white; }
.stat-box[data-stat="assists"]    { background: #198754; color: white; }
.stat-box[data-stat="rebounds"]   { background: #0dcaf0; color: #212529; }
.stat-box[data-stat="steals"]     { background: #ffc107; color: #212529; }
.stat-box[data-stat="blocks"]     { background: #6c757d; color: white; }
.stat-box[data-stat="turnovers"]  { background: #dc3545; color: white; }
.stat-box[data-stat="fouls"]      { background: #212529; color: white; }

/* Bench Players */
.bench-player {
    width: 78px;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 12px;
    padding: 8px 4px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: grab;
}

/* Tables */
.table th {
    font-weight: 600;
    background-color: #f1f5f9;
}

.table td {
    vertical-align: middle;
}

/* Buttons */
.btn .material-symbols-outlined {
    font-size: 1.1rem;
    vertical-align: middle;
    margin-right: 4px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .active-column {
        width: 66px;
        min-height: 320px;
    }
    
    .stat-box {
        height: 40px;
        margin-bottom: 4px;
    }
    
    h2 {
        font-size: 1.35rem;
    }
}

/* Form Focus */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(30, 58, 138, 0.15);
}

footer {
    font-size: 0.9rem;
}

.stat-labels {
    width: 38px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.stat-label {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 0.72rem;
    font-weight: 700;
    color: #495057;
}

.active-column {
    width: 68px;
    flex-shrink: 0;
    min-height: 340px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 14px;
    padding: 8px 4px;
}

.stat-box {
    height: 42px;
    margin-bottom: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.stat-box strong {
    font-size: 1.45rem;
    font-weight: 700;
}

/* Header */
.navbar {
    background-color: #003300 !important;   /* Change to your dark green */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
    background-color: #003300 !important;   /* Change to your dark green */
    color: white;
    padding: 15px 0;
}

/* If you have a dark navbar brand or links */
.navbar-dark .navbar-brand,
.navbar-dark .nav-link {
    color: white !important;
}