/* ===== VARIÁVEIS ===== */
:root {
    --primary: #1e3c72;
    --primary-dark: #0f2b4f;
    --secondary: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    --background: #f0f4f8;
    --card-bg: #ffffff;
    --border-radius: 20px;
    --box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* ===== GLOBAL ===== */
body {
    background: var(--background);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    padding-bottom: 80px; /* espaço para o menu fixo */
    margin: 0;
    min-height: 100vh;
}

/* ===== CARDS ===== */
.card-custom {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
    margin-bottom: 15px;
    overflow: hidden;
}

.card-header-custom {
    background: var(--primary);
    color: white;
    font-weight: bold;
    padding: 15px 20px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* ===== BOTÕES ===== */
.btn-primary-custom {
    background: var(--primary);
    border: none;
    border-radius: 30px;
    padding: 12px 20px;
    color: white;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-outline-custom {
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 30px;
    padding: 8px 16px;
    background: transparent;
    transition: all 0.2s;
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: white;
}

/* ===== FORMULÁRIOS ===== */
.form-control-custom, .form-select-custom {
    border-radius: 15px;
    border: 1px solid #ced4da;
    padding: 12px 15px;
    font-size: 1rem;
}

.form-control-custom:focus, .form-select-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(30,60,114,0.25);
}

/* ===== BADGES ===== */
.badge-pontos {
    background: var(--primary);
    color: white;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
}

.badge-acertos {
    background: var(--secondary);
    color: white;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
}

/* ===== RANKING ===== */
.posicao {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 50px;
    text-align: center;
}

.jogador-nome {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.btn-expand {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-expand:hover {
    background: var(--primary);
    color: white;
}

.lider-card {
    background: #e0e0ce;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    border: none;
    box-shadow: var(--box-shadow);
}

/* ===== MENU INFERIOR ===== */
.nav-bottom {
    background: white;
    border-top: 1px solid #dee2e6;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-bottom .container {
    display: flex;
    justify-content: space-around;
}

.nav-bottom a {
    color: var(--primary);
    font-size: 0.85rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.nav-bottom a i {
    font-size: 1.4rem;
}

.nav-bottom a.active {
    color: #0d6efd;
    font-weight: 600;
}

.nav-bottom a:hover {
    color: var(--primary-dark);
}

/* ===== ALERTAS ===== */
.alert-custom {
    border-radius: 15px;
    border: none;
    box-shadow: var(--box-shadow);
}

/* ===== DETALHES PALPITES ===== */
.detalhes-card {
    background: #f8fafc;
    border-radius: 15px;
    padding: 15px;
    margin-top: 10px;
    font-size: 0.95rem;
}

.grupo-linha {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #dee2e6;
    padding: 6px 0;
}

.grupo-linha:last-child {
    border-bottom: none;
}