/* 
 * IceTrack Premium Theme
 * Colors: Deep Navy, Ice Cyan, White
 */

 :root {
    --bg-dark: #0a0e17;
    --bg-card: #141b2d;
    --bg-card-hover: #1c253b;
    --bg-sidebar: #0f1522;
    
    --primary: #00f2ff; /* Ice Cyan */
    --primary-dim: #00f2ff33;
    --accent: #2d6cdf; /* Jersey Blue */
    
    --text-main: #ffffff;
    --text-muted: #8b9bb4;
    
    --border: #2a3b55;
    
    --success: #00ff9d;
    --danger: #ff4757;
    
    --font-main: 'Inter', sans-serif;
    
    --glass: rgba(20, 27, 45, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
}

/* Layout */
.app-container {
    display: flex;
    height: 100%;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.logo-area {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    flex: 1;
}

.nav-links li {
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links li:hover {
    background: var(--bg-card-hover);
    color: var(--text-main);
}

.nav-links li.active {
    background: var(--primary-dim);
    color: var(--primary);
}

.nav-footer button {
    width: 100%;
    margin-top: auto;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 3rem;
    background: radial-gradient(circle at top right, #1a233a 0%, var(--bg-dark) 40%);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

#pageTitle {
    font-weight: 700;
    font-size: 2rem;
}

.status-indicator {
    background: var(--bg-card);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
}

.status-indicator.live .status-dot {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

/* Sections */
.view-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dashboard */
.hero-card {
    background: linear-gradient(135deg, var(--accent), #1a4b9c);
    padding: 2.5rem;
    border-radius: 24px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-card h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card p {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Setup */
.setup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.card-body {
    padding: 1.5rem;
}

.division-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.div-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.div-btn:hover {
    border-color: var(--text-muted);
}

.div-btn.active {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.input-row {
    display: flex;
    gap: 10px;
}

input[type="text"], select {
    width: 100%;
    padding: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    outline: none;
    font-family: inherit;
}

input:focus, select:focus {
    border-color: var(--primary);
}

.action-btn {
    padding: 0 20px;
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.action-btn.secondary {
    background: var(--accent);
    color: white;
}

.limit-warning {
    font-size: 0.8rem;
    text-align: right;
    margin-top: 6px;
    color: var(--text-muted);
}

.compact-list {
    list-style: none;
    margin-top: 1rem;
    max-height: 250px;
    overflow-y: auto;
}

.compact-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.compact-list li:last-child {
    border-bottom: none;
}

/* Standings */
.division-table-wrapper {
    margin-bottom: 2.5rem;
}

.division-header {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-left: 4px solid var(--primary);
    padding-left: 12px;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.premium-table th {
    text-align: left;
    padding: 16px;
    background: var(--bg-card-hover);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.premium-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

.premium-table tr:last-child td {
    border-bottom: none;
}

.text-center { text-align: center; }
.highlight { color: var(--primary); font-weight: 700; }

/* Buttons */
.danger-btn-small {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.danger-btn-small:hover { opacity: 1; }

.glow-btn {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 0 15px var(--primary-dim);
    transition: transform 0.2s, box-shadow 0.2s;
}

.glow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--primary-dim);
}

.huge-btn {
    width: 100%;
    margin-top: 2rem;
    padding: 20px;
    font-size: 1.2rem;
}

/* Schedule */
.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.match-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
}

.team-display {
    flex: 1;
    font-weight: 600;
    font-size: 1.1rem;
}

.team-display.right { text-align: right; }

.score-board {
    background: var(--bg-dark);
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    align-items: center;
    border: 1px solid var(--border);
}

.score-input {
    width: 40px;
    text-align: center;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 2px solid var(--border);
}

.score-input:focus {
    border-color: var(--primary);
}

/* Finals Area */
.finals-config {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.matchup-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.vs-badge {
    background: var(--danger);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-style: italic;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.4);
}

.final-arena {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.champ-card {
    width: 100%;
    max-width: 800px;
    background: linear-gradient(to bottom, #1a233a, #0a0e17);
    border: 2px solid var(--primary);
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.15);
    padding: 3rem;
    border-radius: 30px;
    text-align: center;
}
