/* Painel.css - Estilos para a página de Painel de Monitoramento de Quadras */

.container-fluid {
    min-height: calc(100vh - 300px);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.row-cols-1 {
    justify-content: center !important;
}

.btn-agendar {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
}

.btn-agendar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.quadra-card {
    transition: all 0.3s ease;
    border-radius: 1rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 350px;
}

.quadra-card:hover {
    box-shadow: 0 0 0 0.25rem #0d6efd33, 0 0.5rem 1rem rgba(0,0,0,.15) !important;
    transform: translateY(-2px);
}

.contador-tempo {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    font-size: 1.1rem;
    letter-spacing: 1px;
    min-width: 120px;
}

.lista-espera {
    border-top: 1px solid rgba(0,0,0,.1);
    padding-top: 1rem;
}

.btn-cancelar-espera {
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    white-space: nowrap;
}

.btn-cancelar-espera:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-cancelar-espera:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.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;
}

.btn-concluir {
    transition: all 0.2s ease;
    border-radius: 0.5rem;
}

.btn-concluir:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
}

.btn-concluir:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.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;
}

.botoes-tempo-container {
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 100%;
    justify-content: center;
    align-items: center;
}

.ajuste-tempo-select {
    min-width: 70px;
    max-width: 90px;
}

.select-tempo-transparente {
    background-color: transparent !important;
    border: 1px solid #dc3545; /* igual ao botão cancelar */
    color: #dc3545;
    box-shadow: none;
    max-width: 90px;
    overflow-y: auto;
}

.select-tempo-transparente:focus {
    background-color: transparent !important;
    border-color: rgb(8, 8, 8);
    color: rgb(8, 8, 8);
    box-shadow: 0 0 0 0.2rem rgba(220,53,69,.25);
}

/* Estilos para preservar quebra de linha e quebra de palavra */
[style*="white-space: pre-line"] {
    white-space: pre-line;
    word-break: break-word;
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .row-cols-1 {
        justify-content: center !important;
    }

    .btn-agendar {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .btn-agendar i {
        font-size: 0.9rem;
    }

    .quadra-card {
        width: 100%;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }

    .card-body {
        padding: 1rem;
    }

    .fs-5 {
        font-size: 1rem !important;
    }

    .badge {
        font-size: 0.75rem;
    }

    .botoes-tempo-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .ajuste-tempo-select {
        width: 100%;
        max-width: 100%;
    }
}

