/* ==========================================================================
   ESTILOS ESPECÍFICOS DA PÁGINA DO PAINEL
   ========================================================================== */

/* ==========================================================================
   LAYOUT DO PAINEL
   ========================================================================== */
.painel-container {
    max-width: 100vw;
}

/* ==========================================================================
   CARDS DE QUADRAS
   ========================================================================== */
.quadra-card {
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    overflow: hidden;
    min-width: 280px;
    max-width: 100%;
}

.quadra-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Melhorias para responsividade */
@media (min-width: 576px) {
    .quadra-card {
        min-width: 320px;
    }
}

@media (min-width: 768px) {
    .quadra-card {
        min-width: 300px;
    }
}

@media (min-width: 992px) {
    .quadra-card {
        min-width: 280px;
    }
}

@media (min-width: 1200px) {
    .quadra-card {
        min-width: 320px;
    }
}

/* ==========================================================================
   CONTEÚDO DOS CARDS
   ========================================================================== */
.jogadores-content {
    white-space: pre-line;
    word-break: break-word;
}

/* ==========================================================================
   CONTADORES DE TEMPO
   ========================================================================== */
.contador-tempo {
    font-size: 1.1rem;
    letter-spacing: 1px;
    min-width: 120px;
}

/* ==========================================================================
   BOTÕES DE AÇÃO
   ========================================================================== */
.btn-cancelar {
    transition: all 0.2s ease;
    border-radius: 0.5rem;
}

.btn-cancelar:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-cancelar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-add {
    transition: all 0.2s ease;
    border-radius: 0.5rem;
}

.btn-add:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(25, 135, 84, 0.3);
}

.btn-add:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   ALERTAS E MENSAGENS
   ========================================================================== */
.alert-sm {
    padding: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    border-color: rgba(13, 202, 240, 0.3);
    color: #0c5460;
}

/* ==========================================================================
   GRUPOS DE BOTÕES
   ========================================================================== */
.btn-group .btn {
    border-radius: 0.5rem !important;
}

.btn-group .btn:first-child {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.btn-group .btn:last-child {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* ==========================================================================
   LISTA DE ESPERA
   ========================================================================== */
.lista-espera {
    border-top: 1px solid rgba(0,0,0,.1);
    padding-top: 1rem;
}

.lista-espera .bg-warning {
    background: linear-gradient(135deg, #ffc107, #ffca2c) !important;
}

.lista-espera .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.lista-espera .small {
    line-height: 1.2;
}

.lista-espera .text-muted {
    color: #6c757d !important;
    font-size: 0.8rem;
}

.lista-espera .rounded {
    border: 1px solid rgba(255, 193, 7, 0.3);
    transition: all 0.2s ease;
}

.lista-espera .rounded:hover {
    background-color: rgba(255, 193, 7, 0.15) !important;
    transform: translateX(2px);
}

/* ==========================================================================
   AGENDAMENTOS FUTUROS
   ========================================================================== */
.lista-espera .badge.bg-warning {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    font-weight: 600;
}

.lista-espera .small.fw-bold {
    color: #495057 !important;
    font-size: 0.85rem;
}

.lista-espera .fas.fa-users {
    color: #6c757d;
    font-size: 0.8rem;
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 768px) {
    .painel-container {
        padding: 0 0.5rem;
    }
    
    .contador-tempo {
        font-size: 1rem;
        min-width: 100px;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-group .btn {
        border-radius: 0.5rem !important;
    }
}

/* ==========================================================================
   MELHORIAS DE RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 576px) {
    .quadra-card {
        margin: 0 auto;
        width: 100%;
        max-width: 320px;
    }
    
    .card-title {
        font-size: 0.9rem !important;
        line-height: 1.2;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .badge {
        font-size: 0.7rem;
    }
    
    .small {
        font-size: 0.75rem;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .quadra-card {
        margin: 0 auto;
        width: 100%;
        max-width: 350px;
    }
}

/* ==========================================================================
   CENTRALIZAÇÃO MELHORADA
   ========================================================================== */
.row {
    margin-left: auto;
    margin-right: auto;
}

/* Melhorias para o grid responsivo */
.row .col {
    display: flex;
    justify-content: center;
}

/* Garante que as cards tenham altura consistente */
.row .col .card {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   ESPAÇAMENTO RESPONSIVO
   ========================================================================== */
.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

@media (max-width: 576px) {
    .g-3 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }
} 