/* Custom Glassmorphism, Glows, and Animations for XyronHost Status Board */

/* Custom Animations */
@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
        box-shadow: 0 0 10px 4px rgba(34, 197, 94, 0.2);
    }
}

@keyframes pulse-glow-red {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
        box-shadow: 0 0 10px 4px rgba(239, 68, 68, 0.2);
    }
}

@keyframes pulse-glow-orange {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
        box-shadow: 0 0 10px 4px rgba(245, 158, 11, 0.2);
    }
}

@keyframes pulse-glow-purple {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4);
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
        box-shadow: 0 0 10px 4px rgba(168, 85, 247, 0.2);
    }
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Glassmorphism Styles */
.glass-panel {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-panel-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-panel-hover:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.5);
}

/* Neon Glow Indicators */
.indicator-operational {
    animation: pulse-glow 2s infinite ease-in-out;
    background-color: #22c55e;
}
.indicator-degraded {
    animation: pulse-glow-orange 2s infinite ease-in-out;
    background-color: #f59e0b;
}
.indicator-partial {
    animation: pulse-glow-orange 2s infinite ease-in-out;
    background-color: #f59e0b;
}
.indicator-major {
    animation: pulse-glow-red 2s infinite ease-in-out;
    background-color: #ef4444;
}
.indicator-maintenance {
    animation: pulse-glow-purple 2s infinite ease-in-out;
    background-color: #a855f7;
}

/* Ticks Grid Tooltip Styles */
.tick-container {
    position: relative;
}
.tick-tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 50;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}
.tick-container:hover .tick-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Background Gradients */
body {
    background: radial-gradient(circle at top right, #1e1b4b 0%, #020617 60%);
    background-attachment: fixed;
}
