/* ELO Chart Page Styles */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); 
    color: #e4e4e7; 
    margin: 0; 
    padding: 20px; 
    min-height: 100vh;
}

h1 { 
    text-align: center; 
    color: #ffffff; 
    font-size: 3em; 
    margin-bottom: 15px; 
    text-shadow: 0 4px 8px rgba(0,0,0,0.4);
    font-weight: 200;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 20px 0;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.nav { 
    text-align: center; 
    margin: 30px 0; 
}

.nav a { 
    margin: 0 15px; 
    padding: 12px 24px; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    text-decoration: none; 
    border-radius: 8px; 
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.nav a:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.chart-container {
    background: rgba(70, 80, 100, 0.98);
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    max-width: 1200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

#eloChart {
    background: rgba(90, 100, 120, 0.9);
    border-radius: 8px;
}

.controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

#teamSearch {
    padding: 10px 15px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.7);
    color: #ffffff;
    font-size: 14px;
    min-width: 200px;
}

#conferenceFilter {
    padding: 10px 15px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.7);
    color: #ffffff;
    font-size: 14px;
    min-width: 180px;
    cursor: pointer;
}

#conferenceFilter option {
    background: rgba(30, 41, 59, 0.9);
    color: #ffffff;
}

#teamSearch:focus, #conferenceFilter:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.controls button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

#eloChart {
    height: 900px !important;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 8px;
}

.team-selector {
    background: rgba(30, 41, 59, 0.9);
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    max-width: 1200px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.team-selector h3 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
}

#teamCheckboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.team-checkbox {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.team-checkbox:hover {
    background: rgba(102, 126, 234, 0.1);
}

.team-checkbox input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
    accent-color: #667eea;
}

.team-checkbox label {
    cursor: pointer;
    font-weight: 500;
    user-select: none;
}

.conference-tag {
    font-size: 0.9em;
    color: #94a3b8;
    font-weight: 400;
}

/* Scrollbar styling for team selector */
.team-selector::-webkit-scrollbar {
    width: 8px;
}

.team-selector::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.1);
    border-radius: 4px;
}

.team-selector::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 4px;
}

.team-selector::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

/* Responsive design */
@media (max-width: 900px) {
    .nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin: 20px 0;
        padding: 0 10px;
    }
    
    .nav a {
        margin: 0;
        padding: 12px;
        font-size: 0.9em;
        text-align: center;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2em;
        letter-spacing: 1px;
        padding: 15px 0;
    }
    
    h1::after {
        width: 100px;
        height: 2px;
    }
    
    .nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin: 20px 0;
        padding: 0 10px;
    }
    
    .nav a {
        margin: 0;
        padding: 14px 8px;
        font-size: 0.85em;
        text-align: center;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    #teamSearch, #conferenceFilter {
        min-width: auto;
        width: 100%;
    }
    
    #teamCheckboxes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .nav a {
        padding: 16px 12px;
        font-size: 0.9em;
    }
}