/* User Dashboard Improvements - Peak Studio */
/* Mejoras específicas para el dashboard de usuarios */

/* ===== MEJORAS PARA CARDS DE ESTADÍSTICAS ===== */

.stat-card {
    background-color: #1C1C1C !important;
    border: 1px solid #3A3A3A !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    color: #FFFFFF !important;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: #DC143C !important;
}

.stat-number {
    color: #DC143C !important;
    font-weight: 800 !important;
    font-size: 2.5rem !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem !important;
}

.stat-label {
    color: #D0D0D0 !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.stat-icon {
    color: #DC143C !important;
    font-size: 2rem !important;
    margin-bottom: 0.5rem !important;
}

/* ===== MEJORAS PARA LISTAS DE RESERVAS ===== */

.reservation-item {
    background-color: #1C1C1C !important;
    border: 1px solid #3A3A3A !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    margin-bottom: 0.75rem !important;
    transition: all 0.3s ease !important;
    color: #FFFFFF !important;
}

.reservation-item:hover {
    background-color: #2A2A2A !important;
    border-color: #DC143C !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.reservation-title {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
}

.reservation-details {
    color: #D0D0D0 !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    margin-bottom: 0.25rem !important;
}

.reservation-status {
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.reservation-status.active {
    background-color: #059669 !important;
    color: #FFFFFF !important;
}

.reservation-status.pending {
    background-color: #FFC107 !important;
    color: #1A1A1A !important;
}

.reservation-status.cancelled {
    background-color: #DC3545 !important;
    color: #FFFFFF !important;
}

/* ===== MEJORAS PARA BOTONES DE ACCIÓN ===== */

.btn-gold {
    background: linear-gradient(135deg, #DC143C, #FF2400) !important;
    border: none !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #B81234, #E01E00) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 20, 60, 0.3);
    color: #FFFFFF !important;
}

.btn-gold-framed {
    background: transparent !important;
    border: 2px solid #DC143C !important;
    color: #DC143C !important;
    font-weight: 700 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.btn-gold-framed:hover {
    background: linear-gradient(135deg, #DC143C, #FF2400) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 20, 60, 0.3);
}

/* ===== MEJORAS PARA HEADERS DE SECCIÓN ===== */

.section-header {
    background: linear-gradient(135deg, #DC143C, #FF2400) !important;
    color: #FFFFFF !important;
    padding: 1.5rem !important;
    border-radius: 12px 12px 0 0 !important;
    margin-bottom: 0 !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.section-title {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
    color: #D0D0D0 !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    margin-bottom: 0 !important;
}

/* ===== MEJORAS PARA CARDS DE INFORMACIÓN ===== */

.info-card {
    background-color: #1C1C1C !important;
    border: 1px solid #3A3A3A !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    color: #FFFFFF !important;
    transition: all 0.3s ease !important;
}

.info-card:hover {
    background-color: #2A2A2A !important;
    border-color: #DC143C !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.info-card-title {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    margin-bottom: 0.75rem !important;
}

.info-card-text {
    color: #D0D0D0 !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

/* ===== MEJORAS PARA ALERTAS DE USUARIO ===== */

.user-alert {
    background-color: #1B2A2D !important;
    border: 1px solid #0891B2 !important;
    border-left: 4px solid #0891B2 !important;
    border-radius: 8px !important;
    padding: 1rem 1.25rem !important;
    margin-bottom: 1rem !important;
    color: #74C0FC !important;
    font-weight: 600 !important;
}

.user-alert.success {
    background-color: #1B2D1B !important;
    border-color: #059669 !important;
    border-left-color: #059669 !important;
    color: #51CF66 !important;
}

.user-alert.warning {
    background-color: #2D2A1B !important;
    border-color: #FFC107 !important;
    border-left-color: #FFC107 !important;
    color: #FFD43B !important;
}

.user-alert.danger {
    background-color: #2D1B1B !important;
    border-color: #DC3545 !important;
    border-left-color: #DC3545 !important;
    color: #FF6B6B !important;
}

/* ===== MEJORAS PARA NAVEGACIÓN DE USUARIO ===== */

.user-nav {
    background-color: #1C1C1C !important;
    border: 1px solid #3A3A3A !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
}

.user-nav-item {
    color: #D0D0D0 !important;
    font-weight: 600 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: block !important;
}

.user-nav-item:hover {
    color: #FFFFFF !important;
    background-color: #2A2A2A !important;
    text-decoration: none !important;
}

.user-nav-item.active {
    color: #DC143C !important;
    background-color: #2A2A2A !important;
    font-weight: 700 !important;
}

/* ===== MEJORAS PARA FORMULARIOS DE USUARIO ===== */

.user-form {
    background-color: #1C1C1C !important;
    border: 1px solid #3A3A3A !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    color: #FFFFFF !important;
}

.user-form .form-label {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    margin-bottom: 0.5rem !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.user-form .form-control {
    background-color: #1A1A1A !important;
    color: #FFFFFF !important;
    border: 2px solid #3A3A3A !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.user-form .form-control:focus {
    background-color: #2A2A2A !important;
    color: #FFFFFF !important;
    border-color: #DC143C !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 20, 60, 0.25) !important;
    outline: none !important;
}

.user-form .form-control::placeholder {
    color: #B8B8B8 !important;
    font-weight: 400 !important;
    opacity: 0.8 !important;
}

/* ===== MEJORAS PARA RESPONSIVE ===== */

@media (max-width: 768px) {
    .stat-card {
        padding: 1rem !important;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    .reservation-item {
        padding: 0.75rem !important;
    }
    
    .btn-gold,
    .btn-gold-framed {
        padding: 0.875rem 1.25rem !important;
        font-size: 0.9rem !important;
    }
    
    .section-header {
        padding: 1rem !important;
    }
    
    .section-title {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 576px) {
    .stat-card {
        padding: 0.75rem !important;
    }
    
    .stat-number {
        font-size: 1.75rem !important;
    }
    
    .reservation-item {
        padding: 0.5rem !important;
    }
    
    .btn-gold,
    .btn-gold-framed {
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
    }
}

/* ===== MEJORAS PARA ACCESIBILIDAD ===== */

/* Focus visible para navegación con teclado */
.stat-card:focus,
.reservation-item:focus,
.btn-gold:focus,
.btn-gold-framed:focus,
.user-nav-item:focus {
    outline: 2px solid #DC143C !important;
    outline-offset: 2px !important;
}

/* Mejoras para lectores de pantalla */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ===== MEJORAS PARA ESTADOS DE CARGA ===== */

.loading-overlay {
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

.spinner-border {
    color: #DC143C !important;
    width: 2rem !important;
    height: 2rem !important;
}

/* ===== MEJORAS PARA TOOLTIPS ===== */

.tooltip {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
}

.tooltip-inner {
    background-color: #2A2A2A !important;
    color: #FFFFFF !important;
    border: 1px solid #3A3A3A !important;
    border-radius: 6px !important;
    padding: 0.5rem 0.75rem !important;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #2A2A2A !important;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #2A2A2A !important;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #2A2A2A !important;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #2A2A2A !important;
}

/* ===== ESTILOS PARA BOTÓN "YA RESERVADO" ===== */

/* Botón "Ya Reservado" - Estado confirmado */
.btn-success.disabled,
.btn-success:disabled {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    border: none !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    cursor: default !important;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3) !important;
}

/* Texto informativo debajo del botón "Ya Reservado" */
.text-success {
    color: #10b981 !important;
    font-weight: 600 !important;
}

/* Animación sutil para el botón "Ya Reservado" */
@keyframes pulseSuccess {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
    }
    50% {
        box-shadow: 0 4px 12px rgba(5, 150, 105, 0.5);
    }
}

.btn-success.disabled:hover,
.btn-success:disabled:hover {
    animation: pulseSuccess 2s ease-in-out infinite;
}

/* Icono dentro del botón "Ya Reservado" */
.btn-success .fa-check-circle {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Mejoras para el mensaje informativo */
.text-success .fa-info-circle {
    margin-right: 0.25rem;
    opacity: 0.9;
}

/* Estado hover para botón de reservar (cuando aún no está reservado) */
.btn-primary.reservar-btn:hover {
    background: linear-gradient(135deg, #DC143C, #FF2400) !important;
    border-color: #DC143C !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 20, 60, 0.4);
    transition: all 0.3s ease;
}

/* Estado hover para botón "Sin cupos" */
.btn-secondary:disabled {
    opacity: 0.6 !important;
}

/* Mejoras para cards de clases con reserva confirmada */
.card.border-primary {
    transition: all 0.3s ease;
}

.card.border-primary:has(.btn-success.disabled) {
    border-color: #10b981 !important;
    background-color: rgba(16, 185, 129, 0.05) !important;
}

/* Efecto de brillo suave en cards con reserva confirmada */
.card:has(.btn-success.disabled) {
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.1), 0 2px 8px rgba(16, 185, 129, 0.15) !important;
}

/* ===== ANIMACIÓN DE LLAMA PARA CLASES PRÓXIMAS ===== */

/* Animación de llama para clases próximas */
@keyframes flame-flicker {
    0% {
        transform: scale(1) rotate(-2deg);
        opacity: 1;
        color: #ff6b35;
        filter: brightness(1) drop-shadow(0 0 3px rgba(255, 107, 53, 0.6));
    }
    25% {
        transform: scale(1.2) rotate(2deg);
        opacity: 0.85;
        color: #ff4500;
        filter: brightness(1.2) drop-shadow(0 0 5px rgba(255, 69, 0, 0.8));
    }
    50% {
        transform: scale(1.3) rotate(-3deg);
        opacity: 1;
        color: #ff8c00;
        filter: brightness(1.3) drop-shadow(0 0 8px rgba(255, 140, 0, 1));
    }
    75% {
        transform: scale(1.1) rotate(3deg);
        opacity: 0.9;
        color: #ff6347;
        filter: brightness(1.1) drop-shadow(0 0 4px rgba(255, 99, 71, 0.7));
    }
    100% {
        transform: scale(1) rotate(-2deg);
        opacity: 1;
        color: #ff6b35;
        filter: brightness(1) drop-shadow(0 0 3px rgba(255, 107, 53, 0.6));
    }
}

.flame-animated {
    animation: flame-flicker 0.8s ease-in-out infinite !important;
    display: inline-block !important;
    color: #ff6b35 !important;
    transform-origin: center bottom !important;
    will-change: transform, opacity, filter;
}