/* Estilos personalizados para o sistema FutScore */

:root {
    --starke-blue: #1e3a8a;
    --starke-light-blue: #3b82f6;
    --starke-green: #16a34a;
    --starke-red: #dc2626;
    --starke-yellow: #eab308;
    --starke-gray: #6b7280;
    --starke-light-gray: #f3f4f6;
    /* Verde padrão da plataforma FutScore */
    --futscore-green: #10ff5c;
    --futscore-green-dark: #0ab04a;
    --futscore-green-light: #e8f8ed;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--starke-blue) !important;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    overflow: hidden;
    background: #ffffff;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.card:not(.scoreboard-card):not(.info-card):not(.goals-control-card) {
    border: 1px solid rgba(30, 58, 138, 0.08);
}

.card-header {
    background: linear-gradient(135deg, var(--cor-primaria, var(--futscore-green)) 0%, var(--cor-primaria, var(--futscore-green)) 65%, #fff 100%);
    color: var(--navbar-text, #10111e);
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

/* Botões primários: cor primária do time; fallback verde quando não configurada */
.btn-primary {
    background-color: var(--cor-primaria, var(--futscore-green)) !important;
    border: none !important;
    border-radius: 8px;
    font-weight: 500;
    color: var(--navbar-text, #10111e) !important;
    transition: all 0.2s ease;
}
.btn-primary:hover {
    filter: brightness(1.08);
    color: var(--navbar-text, #10111e) !important;
}

/* Banner plano Teste e alertas da paleta verde */
.alert-teste-plano {
    background-color: var(--futscore-green-light) !important;
    border-color: var(--futscore-green) !important;
    color: #1a1a1a;
}

/* Modal onboarding: usa cor primária do time; fallback verde */
.modal-header.bg-primary {
    background-color: var(--cor-primaria, var(--futscore-green)) !important;
    color: var(--navbar-text, #10111e) !important;
    border-bottom-color: rgba(0,0,0,0.08) !important;
}
.modal-onboarding-futscore .modal-body {
    background-color: var(--futscore-green-light);
}
.btn-success {
    background: linear-gradient(135deg, #16a34a, #22c55e) !important;
    border: none !important;
    border-radius: 8px;
    color: #fff !important;
}
.btn-danger {
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
    border: none !important;
    border-radius: 8px;
    color: #fff !important;
}
.btn-warning {
    background: linear-gradient(135deg, #eab308, #fbbf24) !important;
    border: none !important;
    border-radius: 8px;
    color: #1f2937 !important;
}

.stats-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: none;
    border-left: 4px solid var(--cor-primaria, var(--futscore-green));
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    height: 100%;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stats-card:hover::before {
    opacity: 1;
}

.stats-card.vitorias {
    border-left: 4px solid #16a34a;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.stats-card.vitorias .stats-icon {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
}

.stats-card.derrotas {
    border-left: 4px solid #dc2626;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.stats-card.derrotas .stats-icon {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.stats-card.empates {
    border-left: 4px solid #eab308;
    background: linear-gradient(135deg, #ffffff 0%, #fefce8 100%);
}

.stats-card.empates .stats-icon {
    color: #eab308;
    background: rgba(234, 179, 8, 0.1);
}

.stats-card.gols-pro {
    border-left: 4px solid #1e3a8a;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.stats-card.gols-pro .stats-icon {
    color: #1e3a8a;
    background: rgba(30, 58, 138, 0.1);
}

.stats-card.gols-contra {
    border-left: 4px solid #dc2626;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.stats-card.gols-contra .stats-icon {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.stats-card.saldo {
    border-left: 4px solid #6b7280;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

.stats-card.saldo .stats-icon {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
}

.stats-card.desempenho {
    border-left: 4px solid #8b5cf6;
    background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
}

.stats-card.desempenho .stats-icon {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.stats-card.desempenho .stats-number {
    color: #8b5cf6;
}

.stats-card.total-jogos {
    border-left: 4px solid #1e3a8a;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.stats-card.total-jogos .stats-icon {
    color: #1e3a8a;
    background: rgba(30, 58, 138, 0.1);
}

.stats-card .card-body {
    padding: 0.5rem 0.85rem;
    position: relative;
    z-index: 1;
}

.stats-icon-wrapper {
    flex-shrink: 0;
}

.stats-icon {
    font-size: 1.65rem;
    padding: 0.35rem;
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-card:hover .stats-icon {
    transform: scale(1.1);
}

.stats-number {
    font-size: 2.05rem;
    font-weight: 800;
    color: var(--starke-blue);
    line-height: 1;
    letter-spacing: -0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.stats-card.vitorias .stats-number {
    color: #16a34a;
}

.stats-card.derrotas .stats-number {
    color: #dc2626;
}

.stats-card.empates .stats-number {
    color: #eab308;
}

.stats-card.gols-pro .stats-number {
    color: #1e3a8a;
}

.stats-card.gols-contra .stats-number {
    color: #dc2626;
}

.stats-card.saldo .stats-number {
    color: #6b7280;
}

.stats-label {
    color: var(--starke-gray);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.2;
    flex-grow: 1;
}

/* Player Row - Layout melhorado */
.player-row {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 14px;
    padding: 18px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.player-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.05), transparent);
    transition: left 0.5s ease;
}

.player-row:hover::before {
    left: 100%;
}

.player-row:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    border-color: var(--starke-light-blue);
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.15);
    transform: translateY(-4px);
}

.player-info {
    flex-shrink: 0;
}

.player-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--starke-blue);
    margin-bottom: 4px;
}

.player-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.player-stats-final {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
}

.stat-badge.assistencia-badge {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
}

/* Stat Counter - Novo design */
.stat-counter {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-counter::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--starke-blue), var(--starke-light-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.stat-counter:hover::after {
    transform: scaleX(1);
}

.stat-counter:hover {
    border-color: var(--starke-light-blue);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
    transform: translateY(-2px);
}

.stat-counter.assistencia-stat {
    background: linear-gradient(135deg, #f0f9ff, #ffffff);
    border-color: #bae6fd;
}

.stat-label {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 4px;
}

.stat-label i {
    font-size: 0.9rem;
    color: var(--starke-blue);
}

/* Ícone de bola de futebol para gols */
.stat-counter:not(.assistencia-stat) .stat-label i.fa-futbol {
    color: #1e3a8a;
    font-size: 0.9rem;
}

/* Ícone de garçom para assistências */
.assistencia-stat .stat-label i.fa-user-tie {
    color: #0284c7;
    font-size: 0.9rem;
}

.stat-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Botões de estatística - Melhorados */
.stat-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    font-weight: bold;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.stat-btn:active {
    transform: scale(0.95);
}

.stat-btn.btn-add {
    background: linear-gradient(135deg, var(--starke-green), #22c55e);
    color: white;
}

.stat-btn.btn-add:hover:not(:disabled) {
    background: linear-gradient(135deg, #22c55e, var(--starke-green));
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3);
}

.stat-btn.btn-remove {
    background: linear-gradient(135deg, var(--starke-red), #ef4444);
    color: white;
}

.stat-btn.btn-remove:hover:not(:disabled) {
    background: linear-gradient(135deg, #ef4444, var(--starke-red));
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

.stat-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--starke-blue);
    min-width: 50px;
    text-align: center;
    line-height: 1;
}

.assistencia-count {
    color: #0284c7;
}

/* Gols Contra Controls - Usando mesmo estilo dos jogadores */
.gols-contra-input {
    font-size: 2rem;
    font-weight: 700;
    color: var(--starke-blue);
    min-width: 50px;
    text-align: center;
    line-height: 1;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 12px;
    background: #ffffff;
    transition: all 0.2s ease;
    max-width: 80px;
}

.gols-contra-input:focus {
    border-color: var(--starke-light-blue);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
    outline: none;
}

.gols-contra-input::-webkit-inner-spin-button,
.gols-contra-input::-webkit-outer-spin-button {
    opacity: 1;
    height: auto;
}

.info-box {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    background: #f0f9ff;
    border-left: 3px solid #0284c7;
    border-radius: 6px;
}

.info-box i {
    color: #0284c7;
    font-size: 1.1rem;
    margin-top: 2px;
}

/* Compatibilidade com código antigo */
.gol-counter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.assistencia-counter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f0f9ff;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #bae6fd;
}

.gol-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    font-weight: bold;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gol-btn:hover:not(:disabled) {
    transform: scale(1.05);
}

.gol-btn.btn-success {
    background: linear-gradient(135deg, var(--starke-green), #22c55e);
    color: white;
}

.gol-btn.btn-danger {
    background: linear-gradient(135deg, var(--starke-red), #ef4444);
    color: white;
}

.gol-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.gol-count {
    font-size: 2rem;
    font-weight: 700;
    color: var(--starke-blue);
    min-width: 50px;
    text-align: center;
}

.assistencia-count {
    font-size: 2rem;
    font-weight: 700;
    color: #0284c7;
    min-width: 50px;
    text-align: center;
}

.ranking-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.ranking-table th {
    background: var(--starke-blue);
    color: white;
    font-weight: 600;
    border: none;
    padding: 15px;
}

/* Reduzir fonte dos cabeçalhos das tabelas */
#tabela-estatisticas-completas thead th,
#tabela-ranking-completo thead th,
.table-ranking thead th {
    font-size: 0.75rem;
    padding: 0.5rem 0.4rem;
    white-space: nowrap;
    line-height: 1.2;
}

#tabela-estatisticas-completas thead th i,
#tabela-ranking-completo thead th i,
.table-ranking thead th i {
    font-size: 0.7rem;
    margin-left: 0.2rem;
}

.ranking-table td {
    padding: 12px 15px;
    border-color: #e2e8f0;
}

.ranking-table tbody tr:hover {
    background: var(--starke-light-gray);
}

.badge-position {
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 20px;
}

.position-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1f2937;
}

.position-2 {
    background: linear-gradient(135deg, #c0c0c0, #e5e7eb);
    color: #1f2937;
}

.position-3 {
    background: linear-gradient(135deg, #cd7f32, #d97706);
    color: white;
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner-border {
    color: var(--starke-blue);
}

.alert {
    border: none;
    border-radius: 8px;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--starke-light-blue);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.page-title {
    color: var(--starke-blue);
    font-weight: bold;
    margin-bottom: 30px;
}

.page-title-share-icon {
    color: var(--starke-blue);
    opacity: 0.85;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s ease;
}
.page-title-share-icon:hover {
    opacity: 1;
    color: var(--starke-blue);
}
.page-title-share-icon i {
    font-size: 1.15rem;
}

.section-title {
    color: var(--starke-blue);
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--starke-light-blue);
    padding-bottom: 10px;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .stats-number {
        font-size: 2rem;
    }
    
    .player-row {
        padding: 14px;
        border-radius: 10px;
    }
    
    .player-name {
        font-size: 1rem;
    }
    
    .stat-counter {
        padding: 10px;
    }
    
    .stat-btn {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
    
    .stat-value {
        font-size: 1.8rem;
        min-width: 45px;
    }
    
    .gols-contra-input {
        font-size: 1.8rem;
        max-width: 70px;
    }
    
    .player-stats {
        gap: 10px;
    }
    
    .info-box {
        margin-top: 12px;
    }
}

@media (max-width: 576px) {
    .player-row {
        padding: 12px;
    }
    
    .stat-btn {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
        border-radius: 10px;
    }
    
    .stat-value {
        font-size: 1.6rem;
        min-width: 40px;
    }
    
    .gols-contra-input {
        font-size: 1.6rem;
        max-width: 60px;
        padding: 6px 10px;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .player-name {
        font-size: 0.95rem;
    }
}

/* Touch targets maiores para mobile */
@media (max-width: 768px) {
    .stat-btn,
    .gol-btn {
        min-width: 48px;
        min-height: 48px;
    }
    
    /* Melhor espaçamento entre elementos */
    .player-stats {
        gap: 12px;
    }
    
    .stat-controls {
        gap: 14px;
    }
}

/* Melhorias de acessibilidade */
.stat-btn:focus-visible,
.gol-btn:focus-visible {
    outline: 3px solid var(--starke-light-blue);
    outline-offset: 2px;
}

/* Transições suaves para mudanças de valor */
.stat-value,
.gol-count,
.assistencia-count {
    transition: all 0.2s ease;
}

.stat-value:empty::before,
.gol-count:empty::before {
    content: "0";
    opacity: 0.5;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s infinite;
}


/* Estilos para ranking dos 5 primeiros colocados */
.ranking-position-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    font-weight: bold;
    border-left: 5px solid #ffd700;
}

.ranking-position-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #333;
    font-weight: bold;
    border-left: 5px solid #c0c0c0;
}

.ranking-position-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
    color: #333;
    font-weight: bold;
    border-left: 5px solid #cd7f32;
}

.ranking-position-4 {
    background: linear-gradient(135deg, #007bff 0%, #66b3ff 100%);
    color: white;
    font-weight: 600;
    border-left: 5px solid #007bff;
}

.ranking-position-5 {
    background: linear-gradient(135deg, #17a2b8 0%, #5bc0de 100%);
    color: white;
    font-weight: 600;
    border-left: 5px solid #17a2b8;
}

/* Efeitos hover para as posições especiais */
.ranking-position-1:hover,
.ranking-position-2:hover,
.ranking-position-3:hover,
.ranking-position-4:hover,
.ranking-position-5:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* Medalhas no dashboard */
.medal-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 8px;
    padding: 8px;
    margin: 2px 0;
}

.medal-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    border-radius: 8px;
    padding: 8px;
    margin: 2px 0;
}

.medal-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
    border-radius: 8px;
    padding: 8px;
    margin: 2px 0;
}

/* Animação para indicador de salvamento */
.save-indicator {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animações e feedback visual */
@keyframes pulse-success {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
    }
    50% { 
        transform: scale(1.08);
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
    }
}

@keyframes pulse-danger {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
    }
    50% { 
        transform: scale(1.08);
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    }
}

.stat-btn.btn-add:active {
    animation: pulse-success 0.3s ease;
}

.stat-btn.btn-remove:active {
    animation: pulse-danger 0.3s ease;
}

/* Melhorias nos botões de gol - compatibilidade */
.btn-add-gol:hover:not(:disabled),
.btn-add-assistencia:hover:not(:disabled) {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.btn-remove-gol:hover:not(:disabled),
.btn-remove-assistencia:hover:not(:disabled) {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Estilo para placar em destaque */
.placar-destaque {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .ranking-position-1,
    .ranking-position-2,
    .ranking-position-3,
    .ranking-position-4,
    .ranking-position-5 {
        font-size: 0.9rem;
        padding: 8px 4px;
    }
    
    .placar-destaque {
        font-size: 2rem;
    }
    
    /* Cards com melhor espaçamento no mobile */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Melhor organização dos cards de jogadores */
    .row.g-3 {
        --bs-gutter-y: 1rem;
    }
    
    /* Placar responsivo */
    .display-1 {
        font-size: 2.5rem !important;
    }
    
    .display-3 {
        font-size: 1.5rem !important;
    }
    
    /* Cards de informação mais compactos */
    .card-header h5,
    .card-header h6 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    /* Placar ainda mais compacto em telas pequenas */
    .display-1 {
        font-size: 2rem !important;
    }
    
    .display-3 {
        font-size: 1.2rem !important;
    }
    
    h3 {
        font-size: 0.9rem !important;
    }
    
    /* Cards de jogadores em coluna única */
    .col-12.col-md-6.col-lg-4 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Menu Dropdown: cor primária do time; fallback verde */
.navbar .dropdown-menu {
    background: var(--cor-primaria, var(--futscore-green-dark));
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border: none;
}

.navbar .dropdown-item {
    color: var(--navbar-text, #10111e) !important;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.navbar .dropdown-item:hover, .navbar .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.2);
    color: var(--navbar-text, #10111e) !important;
}

.navbar .dropdown-item.text-danger {
    color: #ff6b6b !important;
    font-weight: bold;
}

.navbar .dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0.3rem 0;
}

/* Ajuste para card de Últimos Jogos ocupar altura automática, sem forçar altura igual às outras colunas */
.col-lg-4 .card.h-100, #ultimos-jogos, #ultimos-jogos .card, #ultimos-jogos .card-body {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

/* Login e Cadastro - Contraste e usabilidade */
body.login-bg, body.cadastro-bg {
    background: #10111e !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card.login-card, .card.cadastro-card {
    background: #181926 !important;
    border-radius: 1.5rem;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.card.login-card .form-label, .card.cadastro-card .form-label {
    color: #e5e7eb;
    font-weight: 500;
}
.card.login-card .form-control, .card.cadastro-card .form-control, .card.login-card .form-select, .card.cadastro-card .form-select {
    background: #fff;
    color: #181926;
    border: 1px solid #33354d;
    border-radius: 10px;
    font-size: 1.1rem;
}
.card.login-card .form-control:focus, .card.cadastro-card .form-control:focus, .card.login-card .form-select:focus, .card.cadastro-card .form-select:focus {
    background: #fff;
    color: #181926;
    border-color: #10ff5c;
    box-shadow: 0 0 0 2px #10ff5c33;
}
.card.login-card .btn, .card.cadastro-card .btn {
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
}
.card.login-card .btn-primary, .card.cadastro-card .btn-primary {
    background: linear-gradient(135deg, #10ff5c, #1e3a8a) !important;
    color: #10111e !important;
    border: none;
}
.card.login-card .btn-primary:hover, .card.cadastro-card .btn-primary:hover {
    background: linear-gradient(135deg, #1e3a8a, #10ff5c) !important;
    color: #fff !important;
}
.card.login-card .btn-outline-success, .card.cadastro-card .btn-outline-success {
    border: 2px solid #10ff5c;
    color: #10ff5c !important;
    background: transparent !important;
}
.card.login-card .btn-outline-success:hover, .card.cadastro-card .btn-outline-success:hover {
    background: #10ff5c !important;
    color: #10111e !important;
}
.card.login-card .btn-outline-secondary, .card.cadastro-card .btn-outline-secondary {
    border: 2px solid #181926;
    color: #181926 !important;
    background: transparent !important;
}
.card.login-card .btn-outline-secondary:hover, .card.cadastro-card .btn-outline-secondary:hover {
    background: #181926 !important;
    color: #fff !important;
}
.card.login-card .footer-link, .card.cadastro-card .footer-link {
    color: #10ff5c;
    text-decoration: underline;
}
.card.login-card .footer-link:hover, .card.cadastro-card .footer-link:hover {
    color: #fff;
}
.card.login-card .form-control::placeholder, .card.cadastro-card .form-control::placeholder {
    color: #6b7280;
    opacity: 1;
}
.card.login-card .logo-icon, .card.cadastro-card .logo-icon {
    background: #10ff5c;
    color: #10111e;
    border-radius: 0.7rem;
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.card.login-card .brand-text, .card.cadastro-card .brand-text {
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
}
.card.login-card .text-muted, .card.cadastro-card .text-muted {
    color: #b0b3c6 !important;
}
@media (max-width: 600px) {
    .card.login-card, .card.cadastro-card {
        padding: 1.2rem !important;
    }
}

/* Validação */
.form-control.is-invalid, .form-select.is-invalid {
    border-color: #dc3545;
    background: #fff0f0;
    color: #181926;
}
.invalid-feedback {
    color: #dc3545;
    font-size: 0.95em;
    margin-top: 0.25rem;
}

.input-group .toggle-password {
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 1.2rem;
  padding: 0 0.7rem;
  margin-left: -2.5rem;
  z-index: 2;
  transition: color 0.2s;
}
.input-group .toggle-password:focus {
  outline: none;
  box-shadow: none;
}
.input-group .toggle-password:hover {
  color: #10ff5c;
}
.input-group .form-control {
  padding-right: 2.5rem;
}

/* Responsividade para cards de estatísticas - altura reduzida, fonte menor no mobile para evitar quebra */
@media (max-width: 768px) {
  .stats-card {
    margin-bottom: 0.75rem;
  }
  
  .stats-card .card-body {
    padding: 0.45rem 0.5rem !important;
  }
  
  .stats-icon {
    font-size: 1.15rem !important;
    padding: 0.25rem !important;
    width: 1.75rem !important;
    height: 1.75rem !important;
  }
  
  .stats-number {
    font-size: 1.45rem !important;
  }
  
  .stats-label {
    font-size: 0.6rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Garante que os cards ocupem toda a largura no mobile (2 colunas) */
  .row .col-sm-6,
  .row .col-6 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

@media (max-width: 576px) {
  .stats-card {
    margin-bottom: 0.75rem;
  }
  
  .stats-card .card-body {
    padding: 0.4rem 0.45rem !important;
  }
  
  .stats-icon {
    font-size: 1rem !important;
    padding: 0.22rem !important;
    width: 1.55rem !important;
    height: 1.55rem !important;
  }
  
  .stats-number {
    font-size: 1.3rem !important;
  }
  
  .stats-label {
    font-size: 0.55rem !important;
    letter-spacing: 0.35px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 400px) {
  .stats-card .card-body {
    padding: 0.35rem 0.4rem !important;
  }
  .stats-number {
    font-size: 1.15rem !important;
  }
  .stats-icon {
    font-size: 0.9rem !important;
    width: 1.4rem !important;
    height: 1.4rem !important;
  }
  .stats-label {
    font-size: 0.5rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .section-title { font-size: 1.1rem; }
  .section-description { font-size: 0.95rem; }
  .card, .player-row, .ranking-table, .chart-container { padding: 0.7rem !important; }
  .btn, .btn-lg, .btn-primary, .btn-success, .btn-outline-primary, .btn-outline-light { min-height: 44px; font-size: 1rem; }
}
/* ===== MELHORIAS VISUAIS PARA PÁGINA DE JOGO ===== */

/* Card de Placar - Design Impactante */
.scoreboard-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.15);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.scoreboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--starke-blue), var(--starke-light-blue), var(--starke-blue));
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.scoreboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(30, 58, 138, 0.25);
}

.scoreboard-header {
    background: linear-gradient(135deg, var(--starke-blue) 0%, var(--starke-light-blue) 100%);
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.scoreboard-body {
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    position: relative;
}

/* Informações dos Times */
.team-info {
    padding: 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-info:hover::before {
    opacity: 1;
}

.team-home {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 2px solid rgba(30, 58, 138, 0.1);
}

.team-away {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 2px solid rgba(220, 38, 38, 0.1);
}

/* Wrapper para logo/ícone do time */
.team-logo-wrapper {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.team-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 12px;
    background: white;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-info:hover .team-logo {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.team-icon {
    font-size: 2.5rem;
    display: block;
    opacity: 0.7;
    transition: all 0.3s ease;
    color: var(--starke-gray);
}

.team-info:hover .team-icon {
    opacity: 1;
    transform: scale(1.1);
    color: var(--starke-blue);
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem !important;
}

.score-number {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: inline-block;
}

.score-home {
    color: var(--starke-blue);
    text-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.score-away {
    color: var(--starke-red);
    text-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.score-number.score-updated {
    animation: scorePulse 0.5s ease;
}

@keyframes scorePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Divisor do Placar */
.score-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}

.score-x {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--starke-gray);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
}

.score-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4), 0 0 30px rgba(255, 215, 0, 0.2);
    animation: pulseGlow 2s ease-in-out infinite;
    position: relative;
}

.score-icon-wrapper::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), transparent);
    animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseRing {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.15);
        opacity: 0;
    }
}

.score-icon {
    font-size: 2rem;
    color: var(--starke-blue);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    z-index: 1;
    position: relative;
}

/* Card de Informações Melhorado */
.info-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.info-item {
    padding: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.info-item:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    border-color: rgba(30, 58, 138, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
}

.info-label {
    color: var(--starke-gray);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.info-label i {
    color: var(--starke-blue);
    font-size: 1rem;
}

.info-value {
    color: var(--starke-blue);
    font-weight: 600;
}

/* Badge de Status Melhorado */
.status-badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.status-ongoing {
    background: linear-gradient(135deg, var(--starke-yellow), #fbbf24);
    color: #1f2937;
}

.status-finished {
    background: linear-gradient(135deg, var(--starke-green), #22c55e);
    color: white;
}

.pulse-badge {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(234, 179, 8, 0.4);
    }
    50% {
        box-shadow: 0 2px 16px rgba(234, 179, 8, 0.6), 0 0 20px rgba(234, 179, 8, 0.3);
    }
}

/* Card de Controle de Gols Melhorado */
.goals-control-card {
    border-radius: 16px;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.enhanced-info-box {
    padding: 1.25rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid var(--starke-light-blue);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

/* Animações de Entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Aplicar delay progressivo para elementos filhos */
.row.mb-4:first-of-type .fade-in-up {
    animation-delay: 0.1s;
}

.row.mb-4:nth-of-type(2) .fade-in-up {
    animation-delay: 0.2s;
}

.row.mb-4:nth-of-type(3) .fade-in-up {
    animation-delay: 0.3s;
}

.row.mb-4:nth-of-type(4) .fade-in-up {
    animation-delay: 0.4s;
}

/* Responsividade para Placar */
@media (max-width: 768px) {
    .score-number {
        font-size: 2.5rem;
    }
    
    .team-name {
        font-size: 0.9rem;
    }
    
    .score-x {
        font-size: 1.5rem;
    }
    
    .score-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .score-icon-wrapper .score-icon {
        font-size: 1.2rem;
    }
    
    .scoreboard-body {
        padding: 1rem 0.5rem;
    }
    
    .scoreboard-body .row {
        padding: 0.5rem 0 !important;
    }
    
    .gols-contra-input {
        font-size: 1.8rem;
        max-width: 70px;
    }
    
    .team-logo {
        width: 35px;
        height: 35px;
    }
    
    .team-icon {
        font-size: 1.5rem;
    }
    
    .team-logo-wrapper {
        min-height: 35px;
        margin-bottom: 0.5rem;
    }
    
    .team-info {
        padding: 0.75rem 0.5rem;
    }
    
    .score-divider {
        padding: 0.5rem;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .score-number {
        font-size: 2rem;
    }
    
    .team-name {
        font-size: 0.75rem;
        margin-bottom: 0.5rem !important;
    }
    
    .score-x {
        font-size: 1.2rem;
    }
    
    .score-icon-wrapper {
        width: 35px;
        height: 35px;
    }
    
    .score-icon-wrapper .score-icon {
        font-size: 1rem;
    }
    
    .gols-contra-input {
        font-size: 1.6rem;
        max-width: 60px;
        padding: 6px 10px;
    }
    
    .team-info {
        padding: 0.5rem 0.25rem;
    }
    
    .scoreboard-body {
        padding: 0.75rem 0.25rem;
    }
    
    .scoreboard-body .row {
        padding: 0.25rem 0 !important;
    }
    
    .team-logo {
        width: 30px;
        height: 30px;
    }
    
    .team-icon {
        font-size: 1.25rem;
    }
    
    .team-logo-wrapper {
        min-height: 30px;
        margin-bottom: 0.25rem;
    }
    
    .score-divider {
        padding: 0.25rem;
        gap: 0.25rem;
    }
}

/* Imagens e gráficos responsivos */
img, .destaque-img, .chart-container canvas {
  max-width: 100% !important;
  height: auto !important;
}
.chart-container {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto;
  padding: 0;
}
.chart-container canvas {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  display: block;
}
/* Botões e campos mobile */
.btn, .btn-lg, .btn-primary, .btn-success, .btn-outline-primary, .btn-outline-light, .form-control, .form-select {
  min-height: 44px;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .chart-container, .chart-container canvas {
    min-height: 260px !important;
    height: 260px !important;
    max-height: 320px;
  }
}

/* Gráficos de barras e pizza separados */
.chart-bar-container, .chart-pie-container {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto;
  padding: 0;
}

/* Gráficos de pizza - reduzidos */
.chart-pie-container {
  height: 220px !important;
  min-height: 220px !important;
  max-height: 220px !important;
}

.chart-pie-container canvas {
  width: 100% !important;
  height: 220px !important;
  max-height: 220px !important;
  display: block;
}

/* Gráficos de barras - reduzidos */
.chart-bar-container {
  height: 280px !important;
  min-height: 280px !important;
  max-height: 280px !important;
}

.chart-bar-container canvas {
  width: 100% !important;
  height: 280px !important;
  max-height: 280px !important;
  display: block;
}

@media (max-width: 768px) {
  .chart-bar-container, .chart-bar-container canvas {
    min-height: 220px !important;
    height: 220px !important;
    max-height: 220px !important;
  }
  .chart-pie-container, .chart-pie-container canvas {
    min-height: 180px !important;
    height: 180px !important;
    max-height: 180px !important;
  }
}

/* Estilos aprimorados para listas do dashboard */
.jogo-item:hover {
  background: #e9ecef !important;
  transform: translateX(3px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.artilheiro-item:hover {
  background: #e9ecef !important;
  transform: translateX(3px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.frequencia-item:hover {
  background: #e9ecef !important;
  transform: translateX(3px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Melhorias visuais para badges e elementos das listas */
.jogo-item .badge,
.artilheiro-item .badge,
.frequencia-item .badge {
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  font-weight: 600;
}

/* Estilos do rodapé */
footer.bg-light {
  border-top: 1px solid #e5e7eb;
}

footer .container {
  max-width: 1200px;
}

footer h5 {
  font-size: 1.25rem;
  font-weight: 600;
}

footer .text-muted {
  color: #6b7280 !important;
}

/* Responsividade mobile para o rodapé */
@media (max-width: 767.98px) {
  footer {
    padding: 1.5rem 0 !important;
  }
  
  footer .row {
    margin: 0;
  }
  
  footer .col-md-6 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  footer h5 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem !important;
  }
  
  footer .text-muted {
    font-size: 0.85rem !important;
    line-height: 1.5;
  }
  
  footer .col-md-6.text-md-end {
    text-align: left !important;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
  }
}

/* ===== MENU MOBILE FIXO (MODO APLICATIVO) ===== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  display: none;
  padding: 0.5rem 0;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

.mobile-bottom-nav.show {
  display: flex;
}

.mobile-bottom-nav .nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.25rem;
  text-decoration: none;
  color: #6b7280;
  transition: all 0.2s ease;
  position: relative;
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item:active {
  color: var(--cor-primaria, #1e3a8a);
  text-decoration: none;
}

.mobile-bottom-nav .nav-item.active {
  color: var(--cor-primaria, #1e3a8a);
}

.mobile-bottom-nav .nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--cor-primaria, #1e3a8a);
  border-radius: 0 0 3px 3px;
}

.mobile-bottom-nav .nav-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.mobile-bottom-nav .nav-item:hover .nav-icon,
.mobile-bottom-nav .nav-item.active .nav-icon {
  background: rgba(30, 58, 138, 0.1);
  transform: scale(1.1);
}

.mobile-bottom-nav .nav-item.central .nav-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--cor-primaria, #1e3a8a), var(--cor-secundaria, #3b82f6));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
  font-size: 1.8rem;
  margin-top: -8px;
  border-radius: 16px;
  position: relative;
  overflow: visible;
}

.mobile-bottom-nav .nav-item.central .nav-icon .fa-futbol {
  position: relative;
  z-index: 1;
  opacity: 0.9;
}

.mobile-bottom-nav .nav-item.central .nav-icon .plus-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.3rem;
  font-weight: 900;
  z-index: 2;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1;
  margin-top: -3px;
}

.mobile-bottom-nav .nav-item.central:hover .nav-icon,
.mobile-bottom-nav .nav-item.central.active .nav-icon {
  transform: scale(1.15);
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.4);
}

.mobile-bottom-nav .nav-label {
  font-size: 0.65rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  margin-top: 0.125rem;
}

.mobile-bottom-nav .nav-item.central .nav-label {
  margin-top: 0;
}

/* Espaçamento para o menu fixo */
body.modo-aplicativo {
  padding-bottom: 80px;
}

body.modo-aplicativo .container {
  padding-bottom: 1rem;
}

/* Botão de toggle modo aplicativo */
.toggle-app-mode {
  position: fixed;
  bottom: 90px;
  right: 1rem;
  z-index: 1040;
  display: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cor-primaria, #1e3a8a), var(--cor-secundaria, #3b82f6));
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.toggle-app-mode:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.4);
}

.toggle-app-mode:active {
  transform: scale(0.95);
}

.toggle-app-mode.show {
  display: flex;
}

/* Ajustes para modo aplicativo */
body.modo-aplicativo .navbar {
  display: none;
}

body.modo-aplicativo .container {
  margin-top: 0 !important;
  padding-top: 1rem;
}

body.modo-aplicativo footer {
  display: none;
}

/* Mostrar apenas em mobile */
@media (max-width: 768px) {
  .toggle-app-mode {
    display: flex;
  }
  
  .mobile-bottom-nav {
    display: flex;
  }
  
  /* Ajuste de padding quando modo aplicativo está ativo */
  body.modo-aplicativo .container {
    padding-bottom: 90px;
  }
}

@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
  }
  
  .toggle-app-mode {
    display: none !important;
  }
  
  body.modo-aplicativo .navbar {
    display: block !important;
  }
  
  body.modo-aplicativo footer {
    display: block !important;
  }
}

/* ===== DASHBOARD FINANCEIRO – Visual profissional (fonte, sombras, ícones, tabela) ===== */
.financeiro-pagina {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.financeiro-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.financeiro-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
}
.financeiro-card-saldo {
  border-left: 4px solid var(--cor-primaria, #10ff5c);
}
.financeiro-card-entrada {
  border-left: 4px solid #198754;
}
.financeiro-card-saida {
  border-left: 4px solid #dc3545;
}
.financeiro-card-pendentes {
  border-left: 4px solid #fd7e14;
}
.financeiro-icone {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.financeiro-icone-saldo {
  background: rgba(16, 255, 92, 0.15);
  color: var(--cor-primaria, #10ff5c);
}
.financeiro-icone-pendentes {
  background: rgba(253, 126, 20, 0.15);
  color: #fd7e14;
}
.financeiro-icone-entrada {
  background: rgba(25, 135, 84, 0.15);
  color: #198754;
}
.financeiro-icone-saida {
  background: rgba(220, 53, 69, 0.15);
  color: #dc3545;
}
.financeiro-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
  margin-bottom: 0.35rem;
}
.financeiro-label-saldo {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.financeiro-valor,
.financeiro-valor-numero {
  font-variant-numeric: tabular-nums;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.financeiro-valor-hero {
  font-size: 1.65rem;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .financeiro-valor-hero {
    font-size: 1.75rem;
  }
}
.financeiro-valor-numero {
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.financeiro-cor-pendentes {
  color: #fd7e14 !important;
}
.financeiro-btn-pill {
  font-size: 0.8rem !important;
  font-weight: 600;
  padding: 0.2rem 0.6rem !important;
  line-height: 1.3 !important;
  border-radius: 6px !important;
  min-height: auto;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.financeiro-btn-pill .bi {
  font-size: 0.85rem !important;
}
.financeiro-btn-pill:hover {
  opacity: 0.92;
}
.financeiro-btn-pill-pendentes {
  background: #fd7e14 !important;
  color: #fff !important;
  border: none;
}
.financeiro-btn-pill-pendentes:hover {
  background: #e96b00 !important;
  color: #fff !important;
}
.financeiro-btn-whatsapp {
  background: #25d366 !important;
  color: #fff !important;
  border: none;
  font-weight: 600;
}
.financeiro-btn-whatsapp:hover {
  background: #20bd5a !important;
  color: #fff !important;
}
/* Cards de tabela (Mensalidades e Extrato) – sombra e visual profissional */
.financeiro-card-tabela {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}
.financeiro-card-tabela .card-header {
  background: linear-gradient(180deg, #f8fafb 0%, #f1f3f5 100%) !important;
  color: #212529 !important;
  font-weight: 600;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.financeiro-card-tabela .card-header h6 {
  color: inherit !important;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}
.financeiro-tabela-header .badge {
  font-size: 0.7rem;
  font-weight: 600;
}
.financeiro-tabela-dica {
  font-size: 0.75rem !important;
  color: #6c757d !important;
}
.financeiro-card-tabela .card-body {
  background: #fff;
}
.financeiro-tabela {
  font-size: 0.9rem;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}
.financeiro-tabela thead th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #495057;
  background: #f8fafb !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.75rem 1rem;
  vertical-align: middle;
}
.financeiro-tabela thead th i {
  font-size: 0.85rem;
}
.financeiro-tabela tbody td {
  padding: 0.875rem 1rem;
  vertical-align: middle;
  color: #212529;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.financeiro-tabela tbody tr:hover {
  background: #f8fafb;
}
.financeiro-tabela-mensalidades tbody td:first-child {
  font-weight: 500;
}
.financeiro-card-tabela .btn-status {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.financeiro-card-tabela .btn-status:hover {
  transform: none;
  background: #e9ecef;
}
.financeiro-card-tabela .list-group-item {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}
.financeiro-voltar {
  font-size: 0.9rem;
  font-weight: 500;
}
.financeiro-dashboard-cards.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.financeiro-dashboard-cards > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .financeiro-dashboard-cards {
    gap: 0.75rem;
  }
  .financeiro-dashboard-cards .col-md-3 {
    flex: 0 0 calc(25% - 0.5625rem) !important;
    max-width: calc(25% - 0.5625rem) !important;
  }
}
.financeiro-card .card-body {
  padding: 0.85rem 1rem;
}
@media (min-width: 768px) {
  .financeiro-card .card-body {
    padding: 1rem 1.25rem;
  }
}

/* Extrato Financeiro - Responsividade */
.financeiro-extrato-table td,
.financeiro-extrato-table th {
  padding: 0.6rem 0.75rem;
}
@media (max-width: 991.98px) {
  .financeiro-extrato-table td,
  .financeiro-extrato-table th {
    padding: 0.5rem 0.5rem;
    font-size: 0.875rem;
  }
}

/* Dashboard Financeiro - Mobile: 2x2 com cards um pouco mais estreitos para caber lado a lado */
@media (max-width: 767.98px) {
  .financeiro-dashboard-cards {
    margin-bottom: 0.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0.35rem !important;
  }
  .financeiro-dashboard-cards.row > [class*="col-"] {
    flex: 0 0 calc(50% - 0.35rem) !important;
    max-width: calc(50% - 0.35rem) !important;
    width: calc(50% - 0.35rem) !important;
    min-width: 0;
  }
  .financeiro-alert-info .alert {
    padding: 0.5rem 0.75rem;
  }
  .financeiro-alert-info .alert .d-flex {
    gap: 0.5rem !important;
  }
  .financeiro-alert-info .alert .small,
  .financeiro-alert-info .alert ul {
    font-size: 0.75rem !important;
  }
  .financeiro-alert-info .alert .fs-4 {
    font-size: 1rem !important;
  }
  .financeiro-card .card-body {
    padding: 0.5rem 0.45rem !important;
  }
  .financeiro-card-saldo .card-body {
    min-width: 0;
    overflow: hidden;
  }
  .financeiro-label {
    font-size: 0.62rem !important;
    margin-bottom: 0.15rem !important;
  }
  .financeiro-valor-hero {
    font-size: 1.35rem !important;
  }
  .financeiro-valor-numero {
    font-size: 1.1rem !important;
    margin-bottom: 0.3rem !important;
  }
  .financeiro-btn-pill {
    font-size: 0.72rem !important;
    padding: 0.18rem 0.45rem !important;
    border-radius: 6px !important;
  }
  .financeiro-btn-pill .bi {
    font-size: 0.8rem !important;
  }
  .financeiro-icone {
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }
  .financeiro-saldo-atualizado {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.6rem !important;
    max-width: 100%;
    min-width: 0;
  }
}
@media (max-width: 400px) {
  .financeiro-dashboard-cards {
    gap: 0.3rem !important;
  }
  .financeiro-dashboard-cards.row > [class*="col-"] {
    flex: 0 0 calc(50% - 0.3rem) !important;
    max-width: calc(50% - 0.3rem) !important;
    width: calc(50% - 0.3rem) !important;
  }
  .financeiro-card .card-body {
    padding: 0.4rem 0.35rem !important;
  }
  .financeiro-valor-hero {
    font-size: 1.2rem !important;
  }
  .financeiro-valor-numero {
    font-size: 1rem !important;
  }
  .financeiro-btn-pill {
    font-size: 0.65rem !important;
    padding: 0.16rem 0.35rem !important;
  }
  .financeiro-btn-pill .bi {
    font-size: 0.75rem !important;
  }
  .financeiro-saldo-atualizado {
    font-size: 0.55rem !important;
  }
}

#extrato-mobile .list-group-item {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Página Jogadores - Responsividade */
@media (max-width: 767.98px) {
  .jogadores-table .btn-group-sm .btn { padding: 0.35rem 0.5rem; min-width: 36px; }
  .card-body.p-0 .list-group-item:last-child { border-bottom: none !important; }
}
@media (max-width: 991.98px) {
  .jogadores-table td, .jogadores-table th { padding: 0.5rem 0.5rem; font-size: 0.875rem; }
  .jogadores-table .d-flex img.rounded-circle,
  .jogadores-table .d-flex .rounded-circle[style*="width"] { width: 34px !important; height: 34px !important; min-width: 34px; min-height: 34px; }
}

