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

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.ranking-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.ranking-card:hover {
    transform: translateY(-5px);
}

.ranking-card h5 {
    margin-bottom: 10px;
    font-weight: bold;
}

.ranking-card .stats {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.ranking-card .stat {
    text-align: center;
}

.ranking-card .stat-value {
    font-size: 1.2rem;
    font-weight: bold;
}

.ranking-card .stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.jogo-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.jogo-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.jogo-card .jogadores {
    font-weight: bold;
    margin-bottom: 10px;
}

.jogo-card .resultado {
    color: #28a745;
    font-weight: bold;
}

.jogo-card .data {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Estilos para o placar */
.placar {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 8px 12px;
    border-left: 4px solid #007bff;
    margin: 10px 0;
}

.sets-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.set-score {
    font-weight: bold;
    font-size: 1.1em;
    min-width: 20px;
    text-align: center;
}

.set-separator {
    color: #6c757d;
    font-weight: bold;
}

.jogador-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.jogador-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.jogador-inativo {
    opacity: 0.6;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.jogador-inativo .nome {
    text-decoration: line-through;
    color: #6c757d;
}

.jogador-card .nome {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.jogador-card .categoria {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.jogador-card .stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.categoria-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.categoria-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.categoria-card .nome {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.categoria-card .genero {
    color: #6c757d;
    font-size: 0.9rem;
}

.btn-group .btn {
    border-radius: 20px;
    margin-right: 5px;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

.modal-content {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 15px 15px;
}

.set-row {
    margin-bottom: 10px;
    align-items: end;
}

.set-row:last-child {
    margin-bottom: 0;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: bold;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.badge {
    font-size: 0.8rem;
    padding: 0.4em 0.8em;
}

.badge-success {
    background-color: #28a745;
}

.badge-danger {
    background-color: #dc3545;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-info {
    background-color: #17a2b8;
}

/* Estilos para destaque dos rankings */
.table-success {
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
}

.table-success:hover {
    background-color: #c3e6cb !important;
}

/* Posições 5 até antepenúltimo: laranja */
.table-orange {
    background-color: #ffe5d0 !important;
    border-color: #ffd4b8 !important;
}

.table-orange:hover {
    background-color: #ffd4b8 !important;
}

.table-danger {
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
}

.table-danger:hover {
    background-color: #f5c6cb !important;
}

/* Campeão (vencedor da final) */
.table-campeao {
    background-color: #fff3cd !important;
    border-color: #ffecb5 !important;
    font-weight: 600;
}

.table-campeao:hover {
    background-color: #ffecb5 !important;
}

/* Melhorar contraste dos badges nos destaques */
.table-success .badge-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.table-danger .badge-danger {
    background-color: #dc3545 !important;
    color: white !important;
}

@media (max-width: 768px) {
    .ranking-card .stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .jogador-card .stats {
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        margin-right: 0;
        margin-bottom: 5px;
    }
}

/* Estilos para Áreas de Patrocinadores */
.sponsors-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sponsor-card {
    background: white;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(0,123,255,0.2);
    transform: translateY(-2px);
}

.sponsor-placeholder {
    color: #6c757d;
}

.sponsor-placeholder i {
    margin-bottom: 10px;
    opacity: 0.6;
}

.sponsor-placeholder p {
    font-size: 0.9rem;
    margin: 0;
}

/* Estilos para o Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-top: 3px solid #007bff;
    margin-top: 50px;
}

.developer-logo {
    transition: transform 0.3s ease;
}

.developer-logo:hover {
    transform: scale(1.05);
}

.logo-placeholder {
    background: rgba(0,123,255,0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #007bff;
}

/* Estilos para a logo da empresa no rodapé */
.company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Torna a logo branca */
    transition: all 0.3s ease;
}

.footer-logo:hover {
    filter: brightness(1) invert(0); /* Restaura as cores originais no hover */
    transform: scale(1.1);
}

/* Fallback para quando a imagem não carregar */
.company-logo:has(img:not([src])) .footer-logo,
.company-logo img[src=""] {
    display: none;
}

.company-logo:has(img:not([src]))::before,
.company-logo img[src=""]::before {
    content: "\f121"; /* Ícone de código */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 2rem;
    color: #007bff;
    background: rgba(0,123,255,0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #007bff;
}

/* Responsividade para patrocinadores */
@media (max-width: 991px) {
    .sponsors-sidebar {
        position: static;
        margin-top: 20px;
    }
    
    .sponsor-card {
        min-height: 100px;
        padding: 15px;
    }
}

/* Melhorias no layout principal */
.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

/* Efeito de destaque para patrocinadores ativos */
.sponsor-card.active {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
}

.sponsor-card.active .sponsor-placeholder {
    color: #28a745;
}

.sponsor-card.active .sponsor-placeholder i {
    opacity: 1;
}

/* Estilos para logos de patrocinadores */
.sponsor-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.sponsor-link:hover {
    text-decoration: none;
    color: inherit;
}

.sponsor-logo {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.sponsor-logo:hover {
    transform: scale(1.1);
}

.sponsor-name {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    color: #495057;
}

/* Melhorias no layout responsivo */
@media (max-width: 1200px) {
    .sponsor-card {
        min-height: 100px;
        padding: 15px;
    }
    
    .sponsor-logo {
        max-height: 50px;
    }
}

@media (max-width: 768px) {
    .sponsors-sidebar {
        display: none !important;
    }
    
    .col-md-8 {
        width: 100%;
    }
}

/* Chaveamento - Semi-final e Final */
.chaveamento-card .card-header {
    font-size: 1.1rem;
}

.chaveamento-bracket {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: stretch;
}

.chaveamento-semi {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    min-width: 200px;
}

.chaveamento-jogo {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    border-left: 4px solid #28a745;
}

.chaveamento-jogo.final {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left-color: #198754;
    font-weight: 500;
}

.chaveamento-campeao {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    margin-top: 0.75rem;
    font-size: 1.1rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.chaveamento-campeao .fa-trophy {
    font-size: 1.5rem;
}

.chaveamento-placar {
    font-size: 0.9rem;
    color: #495057;
    margin-top: 0.35rem;
    font-weight: 500;
}

.chaveamento-label {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.chaveamento-duelo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.jogador-chave {
    flex: 1;
    min-width: 120px;
    padding: 0.5rem 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    font-weight: 500;
}

.chaveamento-duelo .vs {
    color: #28a745;
    font-weight: bold;
    font-size: 1.1rem;
}

.chaveamento-final {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
} 