/* dashboard-styles.css - Estilos adicionales para los paneles */

/* Asegurar compatibilidad con estilos existentes */
.input-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-field:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mejoras de animación para las stat cards */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 179, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 107, 179, 0.2);
    }
}

.stat-card:hover {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Loading states mejorados */
.loading-skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Mejor contraste para textos */
.stat-label {
    font-weight: 600;
}

/* Tooltips simples */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 0.75rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

/* Estados de cambio (positivo/negativo) */
.change-positive {
    color: #10B981;
}

.change-negative {
    color: #EF4444;
}

.change-neutral {
    color: #6B7280;
}

/* Badges de estado */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.badge-error {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

/* Mejoras para mobile */
@media (max-width: 768px) {
    .stat-value {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .header-dashboard {
        padding: 1rem;
    }
}

/* Print styles para reportes */
@media print {
    .header-dashboard,
    .logout-btn,
    #period-selector {
        display: none;
    }
    
    .stat-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Animaciones suaves para transiciones */
.fade-enter {
    opacity: 0;
    transform: translateY(10px);
}

.fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s, transform 0.3s;
}

/* Mejoras de accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible para teclado */
*:focus-visible {
    outline: 2px solid #FF6BB3;
    outline-offset: 2px;
}

/* Animación para el cambio de valores */
@keyframes value-change {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.stat-value.updating {
    animation: value-change 0.5s ease-in-out;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #9CA3AF;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Success/Error messages */
.message-toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 0.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 9999;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.message-toast.success {
    border-left: 4px solid #10B981;
}

.message-toast.error {
    border-left: 4px solid #EF4444;
}

/* Responsive tables */
.responsive-table {
    overflow-x: auto;
}

.responsive-table table {
    min-width: 600px;
}

/* Dark mode optimizations (ya que el sitio es dark) */
::selection {
    background: rgba(255, 107, 179, 0.3);
    color: white;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 179, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 179, 0.5);
}
/* ========================================
   🎮 ANIMACIONES RPG GAMIFICACIÓN
   ======================================== */

/* Efecto de brillo pulsante para el badge de nivel */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px currentColor;
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 40px currentColor, 0 0 60px currentColor;
        opacity: 0.9;
    }
}

/* Animación flotante para el icono de nivel */
@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Efecto shimmer para la barra de progreso */
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Brillo que atraviesa la barra */
@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(300%);
    }
}

/* Pulso sutil para iconos */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Rebote para emojis de celebración */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Efecto de celebración */
@keyframes celebrate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-15deg) scale(1.1);
    }
    75% {
        transform: rotate(15deg) scale(1.1);
    }
}

/* Efecto de parpadeo para estrellas */
@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Fade in suave */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de partículas flotantes (opcional) */
@keyframes floatParticles {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Hover suave para botones */
button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(0);
}