* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: #0a0a0a;
            color: #e5e5e5;
            overflow-x: hidden;
        }

    /* ================================
    VARIÁVEIS DE TEMA (CLARO/ESCURO)
    ================================ */
:root {
    /* Tema Escuro (padrão) */
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --bg-card: #121212;
    --bg-hover: #161616;
    --text-primary: #e5e5e5;
    --text-secondary: #888;
    --border-color: #1f1f1f;
    --sidebar-bg: linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%);
    --indicator-bg: linear-gradient(135deg, #121212 0%, #0d0d0d 100%);
    --modal-bg: #121212;
}

[data-theme="light"] {
    /* Tema Claro */
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f0f0f0;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --border-color: #e0e0e0;
    --sidebar-bg: linear-gradient(180deg, #f8f8f8 0%, #f5f5f5 100%);
    --indicator-bg: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    --modal-bg: #ffffff;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar {
    background: var(--sidebar-bg);
    border-right-color: var(--border-color);
}

.game-card, .indicator-card, .ice-results, .future-item {
    background: var(--bg-card);
    border-color: var(--border-color);
}

.game-card:hover {
    background: var(--bg-hover);
}

.search-bar, .modal-content {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.search-bar input {
    color: var(--text-primary);
}

.indicator-title, .section-title, .ice-label {
    color: var(--text-secondary);
}

.indicator-value {
    color: var(--text-primary);
}

.ice-item, .category-card, .detail-stat {
    background: var(--bg-hover);
}

        /* ================================
           SCROLLBAR PERSONALIZADA
        ================================ */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #1a1a1a;
        }

        ::-webkit-scrollbar-thumb {
            background: #2d5a2c;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #3a7a38;
        }

        /* ================================
           CONTAINER PRINCIPAL
        ================================ */
        .app-container {
            display: flex;
            min-height: 100vh;
        }

        /* ================================
           SIDEBAR (ESPAÇO FUTURO PARA GRÁFICOS)
        ================================ */
        .sidebar {
            width: 280px;
            background: linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%);
            border-right: 1px solid #1f1f1f;
            padding: 30px 20px;
            position: fixed;
            height: 100vh;
            overflow-y: auto;
        }

        .logo-area {
            text-align: center;
            margin-bottom: 40px;
            padding-bottom: 20px;
            border-bottom: 1px solid #1f1f1f;
        }

        .logo {
            font-size: 2rem;
            font-weight: 800;
            background: linear-gradient(135deg, #2d5a2c 0%, #f5a623 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            letter-spacing: -0.5px;
        }

        .logo-sub {
            font-size: 0.7rem;
            color: #666;
            margin-top: 5px;
        }

        .sidebar-nav {
            margin-top: 30px;
        }

        .nav-item {
            padding: 12px 16px;
            margin: 4px 0;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s;
            color: #888;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .nav-item:hover, .nav-item.active {
            background: rgba(45, 90, 44, 0.15);
            color: #2d5a2c;
        }

        .nav-item i {
            width: 24px;
            font-size: 1.2rem;
        }

        .future-section {
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid #1f1f1f;
        }

        .future-section h4 {
            font-size: 0.75rem;
            text-transform: uppercase;
            color: #555;
            margin-bottom: 15px;
            letter-spacing: 1px;
        }

        .future-item {
            padding: 10px;
            background: #121212;
            border-radius: 10px;
            margin-bottom: 10px;
            font-size: 0.85rem;
            color: #777;
            border: 1px solid #1f1f1f;
            transition: all 0.3s;
        }

        .future-item:hover {
            border-color: #2d5a2c;
            color: #2d5a2c;
        }

        /* ================================
           CONTEÚDO PRINCIPAL
        ================================ */
        .main-content {
            flex: 1;
            margin-left: 280px;
            padding: 30px 40px;
        }

        /* ================================
           HEADER
        ================================ */
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 20px;
        }

        .team-info h1 {
            font-size: 2rem;
            font-weight: 700;
            background: linear-gradient(135deg, #fff 0%, #ccc 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .team-meta {
            display: flex;
            gap: 20px;
            margin-top: 8px;
            color: #888;
            font-size: 0.85rem;
        }

        .team-meta span {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .search-bar {
            background: #121212;
            border: 1px solid #1f1f1f;
            border-radius: 50px;
            padding: 10px 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: all 0.3s;
        }

        .search-bar:hover, .search-bar:focus-within {
            border-color: #2d5a2c;
            background: #161616;
        }

        .search-bar input {
            background: none;
            border: none;
            color: #e5e5e5;
            outline: none;
            font-size: 0.9rem;
            width: 200px;
        }

        .search-bar i {
            color: #666;
        }

        /* ================================
           CARDS DE INDICADORES
        ================================ */
        .indicators-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
        }

        .indicator-card {
            background: linear-gradient(135deg, #121212 0%, #0d0d0d 100%);
            border: 1px solid #1f1f1f;
            border-radius: 20px;
            padding: 20px;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }

        .indicator-card:hover {
            transform: translateY(-3px);
            border-color: #2d5a2c;
            box-shadow: 0 10px 30px rgba(45, 90, 44, 0.1);
        }

        .indicator-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 3px;
            height: 100%;
            background: linear-gradient(180deg, #2d5a2c 0%, #f5a623 100%);
        }

        .indicator-title {
            font-size: 0.75rem;
            text-transform: uppercase;
            color: #888;
            letter-spacing: 1px;
            margin-bottom: 10px;
        }

        .indicator-value {
            font-size: 2.5rem;
            font-weight: 800;
            color: #fff;
        }

        .indicator-unit {
            font-size: 0.9rem;
            color: #666;
            margin-left: 5px;
        }

        .indicator-trend {
            margin-top: 10px;
            font-size: 0.8rem;
            color: #2d5a2c;
        }

        /* ================================
           SEÇÃO DE JOGOS
        ================================ */
        .section-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .section-title i {
            color: #2d5a2c;
        }

        .games-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
        }

        .game-card {
            background: #121212;
            border: 1px solid #1f1f1f;
            border-radius: 16px;
            padding: 20px;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }

        .game-card:hover {
            transform: translateY(-5px);
            border-color: #2d5a2c;
            box-shadow: 0 8px 25px rgba(0,0,0,0.5);
        }

        /* Bordas coloridas por resultado */
        .game-card.vitoria {
            border-left: 4px solid #2d5a2c;
        }

        .game-card.empate {
            border-left: 4px solid #f5a623;
        }

        .game-card.derrota {
            border-left: 4px solid #dc2626;
        }

        .game-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .adversario {
            font-size: 1.1rem;
            font-weight: 600;
        }

        .resultado-badge {
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .resultado-badge.V {
            background: rgba(45, 90, 44, 0.2);
            color: #2d5a2c;
        }

        .resultado-badge.E {
            background: rgba(245, 166, 35, 0.2);
            color: #f5a623;
        }

        .resultado-badge.D {
            background: rgba(220, 38, 38, 0.2);
            color: #dc2626;
        }

        .game-stats-preview {
            display: flex;
            justify-content: space-around;
            padding: 15px 0;
            border-top: 1px solid #1f1f1f;
            border-bottom: 1px solid #1f1f1f;
            margin-bottom: 15px;
        }

        .preview-stat {
            text-align: center;
        }

        .preview-stat .label {
            font-size: 0.7rem;
            color: #666;
        }

        .preview-stat .value {
            font-size: 1rem;
            font-weight: 600;
            margin-top: 4px;
        }

        .ice-preview {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.85rem;
        }

        .ice-label {
            color: #888;
        }

        .ice-value {
            font-weight: 700;
            color: #f5a623;
        }

        /* ================================
           ÁREA DE RESULTADOS ICE
        ================================ */
        .ice-results {
            background: #121212;
            border: 1px solid #1f1f1f;
            border-radius: 20px;
            padding: 25px;
            margin-top: 20px;
        }

        .ice-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .btn-calculate {
            background: linear-gradient(135deg, #2d5a2c 0%, #3a7a38 100%);
            border: none;
            padding: 10px 24px;
            border-radius: 50px;
            color: white;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-calculate:hover {
            transform: scale(1.02);
            box-shadow: 0 4px 15px rgba(45, 90, 44, 0.3);
        }

        .ice-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .ice-item {
            display: grid;
            grid-template-columns: 290px 1fr 300px 60px;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
            background: #0d0d0d;
            border-radius: 12px;
            transition: all 0.3s;
            cursor: pointer;
        }

        .ice-item:hover {
            background: #161616;
            transform: translateX(5px);
        }

        .ice-game-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .ice-index {
            font-size: 0.7rem;
            color: #666;
            font-weight: 600;
        }

        .ice-adversario {
            font-weight: 500;
        }

        .ice-bar-container {
            flex: 1;
            max-width: 300px;
            margin-left: 20px;
        }

        .ice-bar {
            height: 6px;
            background: #1f1f1f;
            border-radius: 3px;
            overflow: hidden;
        }

        .ice-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, #2d5a2c 0%, #f5a623 100%);
            border-radius: 3px;
            transition: width 0.5s ease;
        }

        .ice-percent {
            font-weight: 700;
            color: #f5a623;
            min-width: 45px;
            text-align: right;
        }

        /* ================================
           MODAL (DETALHES DO JOGO)
        ================================ */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.8);
            backdrop-filter: blur(8px);
        }

        .modal-content {
            background: #121212;
            margin: 3% auto;
            width: 90%;
            max-width: 900px;
            border-radius: 24px;
            border: 1px solid #2d5a2c;
            animation: modalSlideIn 0.3s;
            max-height: 85vh;
            overflow-y: auto;
        }

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

        .modal-header {
            padding: 25px 30px;
            background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
            border-bottom: 1px solid #1f1f1f;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-radius: 24px 24px 0 0;
        }

        .modal-header h2 {
            font-size: 1.5rem;
        }

        .close-modal {
            font-size: 2rem;
            cursor: pointer;
            transition: all 0.2s;
            color: #888;
        }

        .close-modal:hover {
            color: #dc2626;
        }

        .modal-body {
            padding: 30px;
        }

        .stats-categories {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .category-card {
            background: #0d0d0d;
            border-radius: 16px;
            padding: 20px;
            text-align: center;
            border: 1px solid #1f1f1f;
        }

        .category-card h4 {
            color: #2d5a2c;
            margin-bottom: 15px;
            font-size: 1rem;
        }

        .category-value {
            font-size: 2rem;
            font-weight: 800;
            color: #f5a623;
        }

        .stats-detail-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        .detail-stat {
            background: #0d0d0d;
            padding: 12px;
            border-radius: 12px;
            text-align: center;
        }

        .detail-stat .label {
            font-size: 0.7rem;
            color: #888;
            margin-bottom: 5px;
        }

        .detail-stat .value {
            font-size: 1.2rem;
            font-weight: 700;
        }

        /* ================================
           RESPONSIVIDADE
        ================================ */
        @media (max-width: 1024px) {
            .sidebar {
                width: 80px;
                padding: 20px 10px;
            }
            
            .sidebar .logo-sub, .sidebar .nav-item span, .future-section {
                display: none;
            }
            
            .main-content {
                margin-left: 80px;
            }
            
            .logo {
                font-size: 1.5rem;
            }
        }

        @media (max-width: 768px) {
            .main-content {
                padding: 20px;
            }
            
            .header {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .games-grid {
                grid-template-columns: 1fr;
            }
            
            .indicators-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Loading */
        .loading {
            text-align: center;
            padding: 50px;
            color: #888;
        }

        /* Empty state */
        .empty-state {
            text-align: center;
            padding: 40px;
            color: #666;
        }


/* ================================
   MODAL - ICE + PILARES + STATS
================================ */

/* ICE principal */
.modal-ice {
    font-size: 3rem;
    font-weight: 800;
    color: #f5a623;
    text-align: center;
    margin-bottom: 25px;
}

/* PILARES */
.pilares {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.pilar {
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.pilar:hover {
    transform: translateY(-2px);
    border-color: #f5a623;
}

.pilar span {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: block;
}

.pilar strong {
    font-size: 1.1rem;
    color: #f5a623;
    display: block;
    margin-top: 5px;
}

/* GRID DE STATS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* CARD INDIVIDUAL */
.stat-card {
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: scale(1.03);
    border-color: #2d5a2c;
}

/* TEXTO */
.stat-card span {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.stat-card strong {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 5px;
    color: var(--text-primary);
}

/* ================================
   RESPONSIVIDADE DO MODAL
================================ */

@media (max-width: 768px) {
    .pilares {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}