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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: #ffffff;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background: rgba(15, 15, 25, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    z-index: 1000;
}

.logo {
    text-align: center;
    padding: 0 20px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo h1 {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.logo p {
    font-size: 12px;
    color: #888;
    letter-spacing: 2px;
}

.menu {
    padding: 30px 0;
}

.menu-item {
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #fff;
    border-left-color: #667eea;
}

.menu-item.active {
    background: rgba(102, 126, 234, 0.15);
    color: #fff;
    border-left-color: #667eea;
}

.menu-item span:first-child {
    font-size: 20px;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    padding: 30px;
    min-height: 100vh;
}

/* Pages */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.header h2 {
    font-size: 32px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.header-actions select {
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 14px;
    cursor: pointer;
    min-width: 200px;
}

.btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.stat-icon {
    font-size: 40px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: #aaa;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-change {
    margin-top: 10px;
    font-size: 12px;
    color: #4ade80;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.content-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.content-card:hover {
    border-color: rgba(102, 126, 234, 0.3);
}

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

.card-title {
    font-size: 18px;
    font-weight: 600;
}

/* Player Card */
.player-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.player-avatar {
    width: 180px;
    height: 180px;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
}

.player-info {
    flex: 1;
}

.player-name {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.player-team {
    color: #4ade80;
    font-size: 18px;
    margin-bottom: 30px;
}

.player-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.player-stat {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.player-stat-value {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.player-stat-label {
    color: #888;
    font-size: 11px;
    margin-top: 5px;
    text-transform: uppercase;
}

/* Progress Bar */
.progress-item {
    margin-bottom: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 1s ease;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-state p {
    color: #888;
}

/* Ranking Table */
.ranking-row {
    display: grid;
    grid-template-columns: 60px 1fr 100px 100px 100px;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
    transition: all 0.3s ease;
}

.ranking-row:hover {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
}

.rank-position {
    font-size: 24px;
    font-weight: 700;
    color: #666;
}

.rank-position.top3 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rank-player {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rank-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.rank-stat {
    text-align: center;
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    animation: fadeIn 0.5s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Charts */
canvas {
    max-height: 300px !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 0;
        overflow: hidden;
    }
    .main-content {
        margin-left: 0;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
/* ==================== CORREÇÃO DOS DROPDOWNS ==================== */

/* Corrigir fundo branco das opções dos selects */
select {
    background-color: rgba(255,255,255,0.05) !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

select option {
    background-color: #1a1a2e !important;
    color: white !important;
    padding: 12px !important;
}

select option:checked,
select option:hover {
    background-color: #667eea !important;
    color: white !important;
}

/* Melhorar aparência dos selects */
select:focus {
    outline: none;
    border-color: #667eea !important;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* ==================== ESTILOS SCOUT DE EQUIPE ==================== */

.equipe-stat-card {
    background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.equipe-stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102,126,234,0.3);
}

.equipe-stat-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.equipe-stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
}

/* Cards de jogadores */
.jogador-card {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.jogador-card:hover {
    background: rgba(255,255,255,0.05);
    transform: translateX(5px);
}

.jogador-medalha {
    font-size: 20px;
    margin-right: 12px;
    min-width: 30px;
    text-align: center;
}

.jogador-foto {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid rgba(255,255,255,0.1);
}

.jogador-foto-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 20px;
}

/* Badges de posição */
.posicao-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
    font-size: 12px;
}

.posicao-1 {
    background: #FFD700;
    color: #000;
}

.posicao-2 {
    background: #C0C0C0;
    color: #000;
}

.posicao-3 {
    background: #CD7F32;
    color: #000;
}

.posicao-outros {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* Scrollbar customizada */
#equipe-ranking-interno::-webkit-scrollbar,
#equipe-historico::-webkit-scrollbar {
    width: 8px;
}

#equipe-ranking-interno::-webkit-scrollbar-track,
#equipe-historico::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

#equipe-ranking-interno::-webkit-scrollbar-thumb,
#equipe-historico::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

#equipe-ranking-interno::-webkit-scrollbar-thumb:hover,
#equipe-historico::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}
