/* 
 * Baseball Monster / Basketball Monster - Shared CSS
 * Version: bm.2026-02-10.01.light.css
 * Theme: Light
 * Sport: All (colors defined in sport-specific files)
 * Bootstrap: 4.6.1
 * 
 * Usage: Load this file first, then load sport-specific CSS (bm.nba or bm.mlb)
 * 
 * CHANGELOG from 2025-01-23.01:
 * - Fixed position badge colors to always show position colors (not gray)
 * - Position badges now show lighter border/text by default, solid color when active
 * - Improved visual feedback for position selection
 */

 :root {
    /* BRAND COLORS - Override these in sport-specific files */
    --brand-primary: #FF6B00;           /* Default orange - override in sport files */
    --brand-primary-light: #f97316;
    --brand-primary-dark: #ea580c;
    --brand-accent: #ff8c42;
    
    /* LIGHT MODE COLORS */
    --color-text-primary: #1e293b;
    --color-text-secondary: #475569;
    --color-text-tertiary: #64748b;
    --color-text-light: #94a3b8;
    
    --color-bg-primary: #f8fafc;
    --color-bg-secondary: #ffffff;
    --color-bg-card: rgba(255, 255, 255, 0.95);
    
    --color-border: rgba(203, 213, 225, 0.8);
    --color-border-light: rgba(226, 232, 240, 0.6);
    
    /* NAVBAR COLORS - Same across all sports */
    --navbar-bg: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --navbar-text: #e2e8f0;
    --navbar-hover-bg: rgba(255,255,255,0.1);
    
    /* STATUS COLORS - Same across all sports */
    --status-success: #059669;
    --status-warning: #d97706;
    --status-error: #dc2626;
    --status-info: #2563eb;
    
    --status-success-bg: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    --status-warning-bg: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    --status-error-bg: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    --status-info-bg: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    
    /* TABLE COLORS */
    --table-header-bg: #1e3a8a;
    --table-header-link: #dbeafe;  /* Much lighter blue - almost white */
    --table-value-color: #059669;
    --table-adv-color: #0891b2;
    
    /* POSITION COLORS */
    --pos-c: #06b6d4;
    --pos-1b: #22c55e;
    --pos-2b: #3b82f6;
    --pos-ss: #ef4444;
    --pos-3b: #f97316;
    --pos-of: #a855f7;
    --pos-dh: #1f2937;
    --pos-sp: #1e40af;
    --pos-rp: #ec4899;
    --pos-cl: #06b6d4;
    --pos-ph: #6b7280;
}

/* GLOBAL STYLES */
* {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

html {
    scrollbar-gutter: stable;
}

body {
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
    font-size: 10pt;
    color: var(--color-text-primary);
    overflow-y: scroll;
    overflow-x: auto;
}

/* NAVBAR STYLES */
.navbar-dark {
    background: var(--navbar-bg) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    padding: 0.75rem 1.5rem 1.25rem 1.5rem;
    position: relative;
    z-index: 1000;
}

.navbar-brand {
    padding: 0 !important;
    margin-right: 1rem !important;
    margin-top: -3px;
}

.navbar-brand img {
    height: 45px;
    width: 45px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

.navbar-nav > li:first-child {
    margin-left: 0.5rem;
}

.nav-link {
    color: var(--navbar-text) !important;
    padding: 0.5rem 0.75rem !important;
    margin: 0 0.15rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-link:hover {
    background: var(--navbar-hover-bg) !important;
    color: var(--brand-accent) !important;
}

.nav-item.active .nav-link {
    background: rgba(255, 140, 66, 0.15);
    color: var(--brand-accent) !important;
}

.dropdown-menu {
    background: white !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.08);
    padding: 0.5rem;
    margin-top: 0.5rem;
    animation: slideDown 0.2s ease;
    min-width: 200px;
    z-index: 1050;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    color: #475569 !important;
    transition: all 0.15s ease;
    border-radius: 4px;
    margin: 2px 4px;
    padding: 0.4rem 0.75rem !important;
    font-size: 0.875rem;
    font-weight: 400;
}

.dropdown-item:hover {
    background: var(--brand-primary) !important;
    color: white !important;
}

.dropdown-divider {
    margin: 0.5rem 10px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.navbar input.form-control {
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: white;
    transition: all 0.3s ease;
    padding: 0.45rem 1rem;
    font-weight: 400;
    font-size: 0.9rem;
    min-width: 180px;
}

.navbar input.form-control::placeholder {
    color: rgba(255,255,255,0.6);
    font-weight: 400;
}

.navbar input.form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.2);
    color: white;
    outline: none;
}

.nav-item.text-light .nav-link {
    background: var(--brand-primary);
    border: none;
    border-radius: 6px;
    padding: 0.35rem 0.65rem !important;
    font-weight: 600;
    font-size: 0.8rem;
    color: white !important;
    margin-left: 0.5rem;
}

.nav-item.text-light .nav-link:hover {
    background: var(--brand-primary-light);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-right .nav-link {
    font-weight: 600;
    padding: 0.4rem 1rem !important;
    font-size: 0.875rem;
    margin: 0 !important;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: white !important;
    background: transparent;
}

.navbar-right .nav-link:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.3);
}

/* PAGE HEADER - Big hero style */
.page-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    border-radius: 0 0 30px 30px;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.2);
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 400;
}

/* PAGE TITLE - Simple page heading (defined in sport-specific files for color) */
.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 1rem 0;
    padding: 0.5rem 0;
}

/* ============================================
   MODERN FILTER SYSTEM - NEW
   Use these classes for the modernized filter controls
   ============================================ */

/* Main container for all filter controls */
.modern-filter-container {
    background: var(--color-bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Individual filter sections */
.modern-filter-section {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border-light);
}

.modern-filter-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Section title */
.modern-filter-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
}

/* Row of filter controls */
.modern-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* Individual filter control group (label + input) */
.modern-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.modern-filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

/* MODERN SELECT STYLING */
.modern-filter-select {
    background: white;
    color: var(--color-text-primary);
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.5rem 2.5rem 0.5rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 150px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.modern-filter-select:hover {
    border-color: var(--brand-primary);
    background-color: #fafafa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FF6B00' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
}

.modern-filter-select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: white;
    transform: translateY(-1px);
}

.modern-filter-select:active {
    transform: translateY(0);
}

.modern-filter-select option {
    background: white;
    color: var(--color-text-primary);
    padding: 0.5rem;
    font-weight: 500;
}

.modern-filter-select optgroup {
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* MODERN TOGGLE/CHECKBOX STYLING */
.modern-filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    user-select: none;
}

.modern-filter-toggle input[type="checkbox"] {
    display: none;
}

.modern-filter-toggle-switch {
    position: relative;
    width: 2.25rem;
    height: 1.1rem;
    background: #cbd5e1;
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
}

.modern-filter-toggle-switch::after {
    content: '';
    position: absolute;
    left: 0.1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.75rem;
    height: 0.75rem;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.modern-filter-toggle input[type="checkbox"]:checked + .modern-filter-toggle-switch {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.modern-filter-toggle input[type="checkbox"]:checked + .modern-filter-toggle-switch::after {
    left: 1.25rem;
}

.modern-filter-toggle-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* MODERN FILTER BADGES (for position filters like C, 1B, 2B) */
.modern-filter-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.modern-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.85rem;
    background: white;
    border: 2px solid #d1d5db;  /* Gray border */
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 45px;
}

/* Default colors for non-position badges (All, Clear) */
.modern-filter-badge:not([data-pos]) {
    color: var(--brand-primary);
}

.modern-filter-badge:not([data-pos]):hover {
    background: rgba(255, 107, 0, 0.05);
    border-color: var(--brand-primary);
    transform: translateY(-1px);
}

.modern-filter-badge:not([data-pos]).active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

/* Position-specific colors - colored text on white background with gray border */
.modern-filter-badge[data-pos="C"] { color: var(--pos-c); }
.modern-filter-badge[data-pos="1B"] { color: var(--pos-1b); }
.modern-filter-badge[data-pos="2B"] { color: var(--pos-2b); }
.modern-filter-badge[data-pos="SS"] { color: var(--pos-ss); }
.modern-filter-badge[data-pos="3B"] { color: var(--pos-3b); }
.modern-filter-badge[data-pos="OF"] { color: var(--pos-of); }
.modern-filter-badge[data-pos="DH"] { color: var(--pos-dh); }
.modern-filter-badge[data-pos="SP"] { color: var(--pos-sp); }
.modern-filter-badge[data-pos="RP"] { color: var(--pos-rp); }
.modern-filter-badge[data-pos="CL"] { color: var(--pos-cl); }
.modern-filter-badge[data-pos="PH"] { color: var(--pos-ph); }

/* Basketball positions */
.modern-filter-badge[data-pos="PG"] { color: var(--pos-pg); }
.modern-filter-badge[data-pos="SG"] { color: var(--pos-sg); }
.modern-filter-badge[data-pos="SF"] { color: var(--pos-sf); }
.modern-filter-badge[data-pos="PF"] { color: var(--pos-pf); }

/* Hover state - darker border, subtle background */
.modern-filter-badge[data-pos]:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Active state with explicit colors for each position */
.modern-filter-badge[data-pos="C"].active { 
    background: var(--pos-c) !important; 
    border-color: var(--pos-c) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.modern-filter-badge[data-pos="1B"].active { 
    background: var(--pos-1b) !important; 
    border-color: var(--pos-1b) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.modern-filter-badge[data-pos="2B"].active { 
    background: var(--pos-2b) !important; 
    border-color: var(--pos-2b) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.modern-filter-badge[data-pos="SS"].active { 
    background: var(--pos-ss) !important; 
    border-color: var(--pos-ss) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.modern-filter-badge[data-pos="3B"].active { 
    background: var(--pos-3b) !important; 
    border-color: var(--pos-3b) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.modern-filter-badge[data-pos="OF"].active { 
    background: var(--pos-of) !important; 
    border-color: var(--pos-of) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.modern-filter-badge[data-pos="DH"].active { 
    background: var(--pos-dh) !important; 
    border-color: var(--pos-dh) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.modern-filter-badge[data-pos="SP"].active { 
    background: var(--pos-sp) !important; 
    border-color: var(--pos-sp) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.modern-filter-badge[data-pos="RP"].active { 
    background: var(--pos-rp) !important; 
    border-color: var(--pos-rp) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.modern-filter-badge[data-pos="CL"].active { 
    background: var(--pos-cl) !important; 
    border-color: var(--pos-cl) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.modern-filter-badge[data-pos="PH"].active { 
    background: var(--pos-ph) !important; 
    border-color: var(--pos-ph) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Basketball positions active states */
.modern-filter-badge[data-pos="PG"].active { 
    background: var(--pos-pg) !important; 
    border-color: var(--pos-pg) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.modern-filter-badge[data-pos="SG"].active { 
    background: var(--pos-sg) !important; 
    border-color: var(--pos-sg) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.modern-filter-badge[data-pos="SF"].active { 
    background: var(--pos-sf) !important; 
    border-color: var(--pos-sf) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.modern-filter-badge[data-pos="PF"].active { 
    background: var(--pos-pf) !important; 
    border-color: var(--pos-pf) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Hidden checkboxes for form submission */
.modern-filter-badge input[type="checkbox"] {
    display: none;
}

/* MODERN BUTTON STYLING */
.modern-filter-buttons {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.modern-filter-btn {
    padding: 0.4rem 0.85rem;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modern-filter-btn-primary {
    background: var(--brand-primary);
    color: white;
}

.modern-filter-btn-primary:hover {
    background: var(--brand-primary-light);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 107, 0, 0.2);
}

.modern-filter-btn-secondary {
    background: white;
    color: var(--color-text-primary);
    border-color: var(--color-border);
}

.modern-filter-btn-secondary:hover {
    background: var(--color-bg-primary);
    border-color: var(--brand-primary);
}

/* ============================================
   TABLE STYLES - COMPACT & AUTO-WIDTH
   ============================================ */

/* Remove width constraints - let table size naturally */
.rankings-card-based,
.table-container,
.modern-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
    width: auto !important;
    max-width: none !important;
    overflow: visible;
}

/* Tables auto-size based on content */
.rankings-table,
.modern-stats-table {
    width: auto;
    min-width: auto;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto !important;
}

/* Compact table headers with lighter link color */
.rankings-table th,
.modern-stats-table th {
    background: var(--table-header-bg);
    color: white;
    padding: 0.4rem 0.3rem;
    font-weight: 600;
    font-size: 0.75rem;
    border: none;
    white-space: nowrap;
    text-align: center;
}

.rankings-table th:first-child,
.modern-stats-table th:first-child {
    border-radius: 8px 0 0 0;
    padding-left: 0.5rem;
    text-align: left;
}

.rankings-table th:last-child,
.modern-stats-table th:last-child {
    border-radius: 0 8px 0 0;
    padding-right: 0.5rem;
}

/* Lighter link color for sortable columns */
.rankings-table th a,
.modern-stats-table th a {
    color: var(--table-header-link);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.rankings-table th a:hover,
.modern-stats-table th a:hover {
    color: #ffffff;  /* Pure white on hover */
}

/* Compact table cells */
.rankings-table td,
.modern-stats-table td {
    padding: 0.25rem 0.3rem;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--color-border-light);
    text-align: center;
}

.rankings-table td:first-child,
.modern-stats-table td:first-child {
    padding-left: 0.5rem;
    text-align: left;
}

.rankings-table td:last-child,
.modern-stats-table td:last-child {
    padding-right: 0.5rem;
}

.rankings-table tbody tr:hover,
.modern-stats-table tbody tr:hover {
    background: var(--color-bg-primary);
}

.rankings-table a,
.modern-stats-table a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.rankings-table a:hover,
.modern-stats-table a:hover {
    color: #1d4ed8;
}

/* Value cells - TEXT COLOR ONLY (no background) */
.value-cell {
    color: var(--table-value-color);
    font-weight: 700;
}

.adv-cell {
    color: var(--table-adv-color);
    font-weight: 600;
}

/* Table alignment utilities */
.table-align-left td {
    text-align: left !important;
}

.table-align-center td {
    text-align: center !important;
}

.table-align-right td {
    text-align: right !important;
}

/* ============================================
   LEGACY STYLES - KEEP FOR BACKWARDS COMPATIBILITY
   ============================================ */

/* ANALYSTS BAR */
.analysts-bar {
    background: var(--color-bg-card);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.analysts-bar strong {
    color: #2563eb;
    font-weight: 700;
}

.analyst-name {
    color: #3b82f6;
    font-weight: 600;
}

/* CARD STYLES */
.card-based {
    background: var(--color-bg-card);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card-based:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-based h3,
.card-based h5 {
    color: #2563eb;
}

.card-based a {
    color: #3b82f6;
}

/* FILTER CONTROLS (Legacy - keeping for backwards compatibility) */
.filter-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 0;
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
}

.filter-controls input[type="radio"],
.filter-controls input[type="checkbox"] {
    display: none;
}

.filter-controls label {
    padding: 0.4rem 0.8rem;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-text-primary);
}

.filter-controls label:hover {
    border-color: var(--brand-primary);
}

.filter-controls input[type="radio"]:checked + label,
.filter-controls input[type="checkbox"]:checked + label {
    background: var(--brand-primary);
    color: white;
    border-color: transparent;
}

/* GAMES */
.games-card-based h5 {
    color: #2563eb;
    font-weight: 700;
    margin-bottom: 1rem;
}

.game-time-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    margin: 1rem 0;
}

.game-matchup {
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0.75rem 0;
}

.player-status-item {
    padding: 0.5rem;
    margin: 0.5rem 0;
    background: var(--color-bg-primary);
    border-radius: 0 8px 8px 0;
    border-left: 4px solid #cbd5e1;
    transition: all 0.2s ease;
}

.player-status-item:hover {
    border-left-color: var(--brand-primary);
    background: #f1f5f9;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    margin-right: 8px;
}

/* FOOTER */
footer {
    background: white;
    color: #64748b;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
    margin-top: 2rem;
}

footer a {
    color: var(--brand-primary);
    text-decoration: none;
}

footer a:hover {
    color: var(--brand-primary-light);
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header .subtitle {
        font-size: 1rem;
    }
    
    .card-based {
        padding: 1rem;
    }

    .modern-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .modern-filter-select {
        width: 100%;
    }

    .modern-filter-buttons {
        flex-wrap: wrap;
    }

    .rankings-table th,
    .rankings-table td,
    .modern-stats-table th,
    .modern-stats-table td {
        font-size: 0.7rem;
        padding: 0.25rem 0.2rem;
    }
}

/* ============================================
   CUSTOM DROPDOWN STYLES
   ============================================ */

.bm-custom-select {
    position: relative;
    width: 100%;
    min-width: 200px;
}

.bm-custom-select-trigger {
    background: white;
    color: #1e293b;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.5rem 2.5rem 0.5rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.bm-custom-select-trigger:hover {
    border-color: var(--brand-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bm-custom-select.open .bm-custom-select-trigger {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(45, 122, 62, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bm-custom-select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #64748b;
    transition: all 0.25s ease;
    pointer-events: none;
}

.bm-custom-select-trigger:hover .bm-custom-select-arrow {
    border-top-color: var(--brand-primary);
}

.bm-custom-select.open .bm-custom-select-arrow {
    transform: translateY(-50%) rotate(180deg);
    border-top-color: var(--brand-primary);
}

.bm-custom-select-options {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--brand-primary);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bm-custom-select.open .bm-custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bm-custom-select-option {
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e293b;
}

.bm-custom-select-option:first-child {
    border-radius: 8px 8px 0 0;
}

.bm-custom-select-option:last-child {
    border-radius: 0 0 8px 8px;
}

.bm-custom-select-option:hover {
    background: linear-gradient(90deg, rgba(45, 122, 62, 0.1) 0%, rgba(45, 122, 62, 0.05) 100%);
    padding-left: 1.25rem;
}

.bm-custom-select-option.selected {
    background: linear-gradient(90deg, rgba(45, 122, 62, 0.15) 0%, rgba(45, 122, 62, 0.08) 100%);
    font-weight: 600;
    color: var(--brand-primary);
}

.bm-custom-select-option.selected::before {
    content: "✓";
    color: var(--brand-primary);
    font-weight: bold;
    margin-right: 0.5rem;
}

.bm-custom-select-options::-webkit-scrollbar {
    width: 8px;
}

.bm-custom-select-options::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.bm-custom-select-options::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.bm-custom-select-options::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.bm-custom-select select {
    display: none;
}
