/* Clubs Selección Profesor - Estilos */

.cbta256-clubs-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header */
.clubs-header {
    text-align: center;
    margin-bottom: 30px;
}

.clubs-header h2 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 10px;
}

.clubs-descripcion {
    color: #7f8c8d;
    font-size: 1.1em;
}

/* Mensajes de status */
.status-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 1em;
    animation: slideDown 0.3s ease;
}

.status-message.status-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message.status-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-message.status-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Grid de clubs */
.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.club-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.club-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.club-card-content {
    margin-bottom: 15px;
}

.club-card-nombre {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 8px;
    font-weight: 600;
}

.club-card-cupo {
    color: #7f8c8d;
    font-size: 0.95em;
    margin: 0;
}

.club-card-action {
    text-align: center;
}

.btn-seleccionar {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.btn-seleccionar:hover {
    background-color: #2980b9;
}

.no-clubs {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.1em;
    padding: 40px 20px;
}

/* Club asignado */
.club-asignado-card {
    background: white;
    border: 2px solid #27ae60;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.club-asignado-card h3 {
    color: #27ae60;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.club-info {
    margin-top: 15px;
}

.club-nombre {
    font-size: 1.3em;
    color: #2c3e50;
    margin-bottom: 15px;
}

.club-status {
    margin-top: 15px;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95em;
    font-weight: 600;
}

.status-autorizado {
    background-color: #d4edda;
    color: #155724;
}

.status-pendiente {
    background-color: #fff3cd;
    color: #856404;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-contenido {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

.modal-contenido h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.club-nombre-modal {
    font-size: 1.2em;
    color: #3498db;
    margin: 15px 0;
}

.club-aviso {
    font-size: 0.95em;
    color: #7f8c8d;
    margin-top: 15px;
}

.modal-acciones {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    justify-content: flex-end;
}

.btn-confirmar,
.btn-cancelar {
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-confirmar {
    background-color: #27ae60;
    color: white;
}

.btn-confirmar:hover {
    background-color: #229954;
}

.btn-cancelar {
    background-color: #95a5a6;
    color: white;
}

.btn-cancelar:hover {
    background-color: #7f8c8d;
}

/* Loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loader-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.loader-overlay p {
    margin-top: 20px;
    color: #2c3e50;
    font-size: 1.1em;
}

/* Animaciones */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .clubs-grid {
        grid-template-columns: 1fr;
    }
    
    .clubs-header h2 {
        font-size: 1.5em;
    }
    
    .modal-contenido {
        width: 95%;
        padding: 20px;
    }
    
    .modal-acciones {
        flex-direction: column;
    }
    
    .btn-confirmar,
    .btn-cancelar {
        width: 100%;
    }
}
