/* Estilos personalizados para el Monitor de Uptime */

/* Fuentes e importaciones generales */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    background-color: #020617; /* Slate 950 */
    color: #f8fafc; /* Slate 50 */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Efecto Glassmorphism Premium */
.glass-panel {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel-hover:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

.glass-input {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    transition: all 0.3s ease;
}

.glass-input:focus {
    border-color: #6366f1; /* Indigo 500 */
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
    outline: none;
}

/* Estilos de transición y modo claro */
html:not(.dark) body {
    background-color: #f8fafc;
    color: #0f172a;
}

html:not(.dark) .glass-panel {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 8px 32px 0 rgba(148, 163, 184, 0.08);
}

html:not(.dark) .glass-panel-hover:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 12px 40px 0 rgba(148, 163, 184, 0.18);
}

html:not(.dark) .glass-input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #0f172a;
}

html:not(.dark) .glass-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.15);
}

html:not(.dark) .bg-glow-purple {
    background: radial-gradient(circle, rgba(147, 51, 234, 0.05) 0%, rgba(0,0,0,0) 70%);
}

/* Fix Tailwind text colors for light mode */
html:not(.dark) .text-white,
html:not(.dark) .text-slate-100 {
    color: #0f172a !important; /* Slate 900 */
}

html:not(.dark) .text-slate-200,
html:not(.dark) .text-slate-300 {
    color: #334155 !important; /* Slate 700 */
}

html:not(.dark) .text-slate-400 {
    color: #475569 !important; /* Slate 600 */
}

html:not(.dark) .text-transparent.bg-clip-text.bg-gradient-to-r {
    background-image: linear-gradient(to right, #0f172a, #334155, #64748b) !important;
}

html:not(.dark) .bg-glow-blue {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, rgba(0,0,0,0) 70%);
}

html:not(.dark) ::-webkit-scrollbar-track {
    background: #f1f5f9;
}

html:not(.dark) ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

html:not(.dark) ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animaciones de Luces Pulsantes */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes pulse-yellow {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

@keyframes pulse-gray {
    0% {
        box-shadow: 0 0 0 0 rgba(148, 163, 184, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(148, 163, 184, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(148, 163, 184, 0);
    }
}

.glow-active {
    background-color: #10b981;
    animation: pulse-green 2s infinite;
}

.glow-caido {
    background-color: #ef4444;
    animation: pulse-red 2s infinite;
}

.glow-error {
    background-color: #f59e0b;
    animation: pulse-yellow 2s infinite;
}

.glow-pendiente {
    background-color: #94a3b8;
    animation: pulse-gray 2s infinite;
}

/* Efectos de fondo difuminados en la app */
.bg-glow-purple {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.15) 0%, rgba(0,0,0,0) 70%);
    top: -100px;
    left: -100px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow-blue {
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(0,0,0,0) 70%);
    bottom: -150px;
    right: -150px;
    pointer-events: none;
    z-index: 0;
}

/* Scrollbar moderno */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Animación de Toasts */
@keyframes slide-in-right {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-in {
    animation: slide-in-right 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Efectos de transiciones suaves */
.transition-view {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.hidden-view {
    display: none !important;
    opacity: 0;
    transform: scale(0.98);
}

.visible-view {
    display: block !important;
    opacity: 1;
    transform: scale(1);
}
