/* ========================================
   RESERVAS
   ======================================== */
.date-selector {
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: center;
}

.date-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    justify-content: center;
}

.date-form label {
    width: 100%;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

.date-select {
    min-width: 280px;
}

/* Tabla de disponibilidad */
.availability-wrapper {
    margin-top: 2rem;
}

.availability-date {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.availability-table-container {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.availability-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.availability-table thead th {
    background: var(--primary);
    color: white;
    padding: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    position: sticky;
    top: 0;
}

.time-cell {
    background: white;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark);
    white-space: nowrap;
    border-bottom: 1px solid #eee;
    text-align: center;
    min-width: 120px;
}

.court-cell {
    padding: 0.75rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    min-width: 130px;
}

.court-cell.available {
    background: #66bb6a;
    color: white;
    cursor: pointer;
}

.court-cell.available:hover {
    background: #43a047;
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(67, 160, 71, 0.4);
    z-index: 1;
    position: relative;
}

.court-cell.reserved {
    background: #ef9a9a;
    color: #c62828;
}

.court-cell.tournament-blocked {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
    cursor: not-allowed;
}

.court-cell.tournament-blocked .slot-status {
    font-size: 0.72rem;
}

.slot-time {
    font-weight: 700;
    font-size: 0.85rem;
}

.slot-duration {
    font-size: 0.75rem;
    opacity: 0.8;
}

.slot-status {
    font-weight: 600;
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

/* Modal icon variants */
.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.modal-icon.warning {
    background: #fff3e0;
    color: #f57c00;
}

.modal-icon.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.modal-icon.error {
    background: #fce4ec;
    color: #c62828;
}

.modal-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.reservation-details {
    text-align: left;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
}

.reservation-details p {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.reservation-details strong {
    color: var(--primary);
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
}

@media (max-width: 768px) {
    .availability-date {
        font-size: 1.3rem;
    }
}
