/* Estilos minimalistas para el Command Palette - Versión 2 */

/* Fix z-index para modales de Bootstrap */
#accionesRapidasModal {
    z-index: 1060 !important;
}

/* Asegurar que el modal esté oculto por defecto */
#accionesRapidasModal:not(.show) {
    display: none !important;
}

#accionesRapidasModal .modal-backdrop {
    z-index: 1055 !important;
}

.modal-backdrop.show {
    z-index: 1055 !important;
}

#whatsappModal {
    z-index: 1070 !important;
}

/* Efecto hover sutil */
.hover-lift {
    transition: all 0.2s ease;
}

.hover-lift:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
}

/* Botones de participación con efectos especiales */
.btn-participacion {
    transition: all 0.3s ease;
    border-width: 1px;
    position: relative;
    overflow: hidden;
}

.btn-participacion::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-participacion:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.btn-participacion:hover::before {
    left: 100%;
}

.btn-participacion:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Separador vertical */
.vr {
    width: 1px;
    background-color: #dee2e6;
    margin: 0 0.5rem;
}

/* Badges de estado */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Métricas en línea */
.text-center small {
    font-size: 0.75rem;
    line-height: 1.2;
}

/* Avatar con estado */
.avatar-estudiante {
    transition: all 0.3s ease;
}

.avatar-estudiante:hover {
    transform: scale(1.1);
}

/* Notificaciones mejoradas */
.notificacion-participacion {
    border: none;
    border-left: 4px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Efectos de botones de acción */
.btn-accion {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-accion::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn-accion:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
}

.btn-accion:hover::after {
    width: 100%;
    height: 100%;
}

.btn-accion:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Mejoras para pantallas pequeñas */
@media (max-width: 768px) {
    .hover-lift {
        padding: 1rem !important;
    }
    
    .d-flex.gap-4 {
        gap: 1rem !important;
    }
    
    .d-flex.gap-2 {
        gap: 0.5rem !important;
    }
    
    .btn-sm {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .vr {
        display: none;
    }
}

/* Efectos de carga */
.spinner-border {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estados de color mejorados */
.bg-success {
    background-color: #198754 !important;
}

.bg-primary {
    background-color: #0d6efd !important;
}

.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.bg-secondary {
    background-color: #6c757d !important;
}

/* Colores de botones mejorados */
.btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.btn-success {
    background-color: #198754 !important;
    border-color: #198754 !important;
}

.btn-primary {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.btn-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.btn-info {
    background-color: #0dcaf0 !important;
    border-color: #0dcaf0 !important;
    color: #000 !important;
}

.btn-warning {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #000 !important;
}

/* Efectos de texto */
.fw-bold {
    font-weight: 600 !important;
}

/* Bordes sutiles */
.border-bottom {
    border-bottom: 1px solid #e9ecef !important;
}

/* Espaciado consistente */
.p-4 {
    padding: 1.5rem !important;
}

/* Mejoras para accesibilidad */
.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Efectos de transición globales */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Botón de WhatsApp */
.btn-whatsapp {
    background-color: #25d366 !important;
    border-color: #25d366 !important;
    color: white !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-whatsapp:hover {
    background-color: #128c7e !important;
    border-color: #128c7e !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-whatsapp:hover::before {
    left: 100%;
}

/* Modal de WhatsApp */
#whatsappModal .modal-header {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
}

#whatsappModal .form-control:focus {
    border-color: #25d366;
    box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.25);
}

#whatsappModal .form-select:focus {
    border-color: #25d366;
    box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.25);
}

/* Animación para el icono de WhatsApp */
@keyframes whatsapp-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.btn-whatsapp:hover i {
    animation: whatsapp-pulse 0.6s ease-in-out;
}