:root {
    --indigo-500: #6366f1;
    --indigo-400: #818cf8;
    --black: #030303;
}

html, body {
    background-color: var(--black) !important;
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    color: white;
    font-family: 'Inter', sans-serif;
}

.bg-latent {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle at 50% -20%, #1a1a2e 0%, #030303 100%);
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 1;
    pointer-events: none;
}

.ambient-light {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
    filter: blur(40px);
}

.mouse-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.4);
}

.status-dot {
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.status-dot.active {
    background-color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

.status-dot.error {
    background-color: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

.status-dot.loading {
    background-color: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.5; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(20px, -20px) scale(0);
    }
}

/* Glow Effects */
.glow-blue {
    box-shadow: 0 0 20px var(--blue-glow), 0 0 40px rgba(59, 130, 246, 0.2);
}

.glow-pulse {
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px var(--blue-glow); }
    50% { box-shadow: 0 0 40px var(--blue-glow), 0 0 60px rgba(59, 130, 246, 0.3); }
}

/* Status Dot Animations */
.status-dot {
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% { width: 100%; height: 100%; opacity: 0.8; }
    100% { width: 300%; height: 300%; opacity: 0; }
}

.status-dot.active::after {
    background: currentColor;
}

/* Terminal Text Animation */
.terminal-text {
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.8;
}

.terminal-line {
    opacity: 0;
    animation: fadeInLine 0.3s ease-out forwards;
}

@keyframes fadeInLine {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--blue);
}

/* Logo Animation */
.logo-text {
    display: inline-block;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Custom Discord Button */
.discord-custom-btn {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}



@media (max-width: 768px) {
    #siteInput {
        height: 56px !important;
        font-size: 14px;
    }
    button[onclick="fetchLogs()"] {
        height: 56px !important;
        width: 100%;
    }
    nav h1 {
        font-size: 14px !important;
    }
}

/* Loading Animation */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Premium Minimalist Watermark */
.watermark {
    bottom: 24px;
    left: 24px;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 14px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.05em;
    opacity: 1;
}

/* Success Animation */
@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.success-animation {
    animation: successPulse 0.5s ease-out;
}

/* Discord Button Hover */
.discord-btn {
    position: relative;
    transition: all 0.3s ease;
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
}