:root {
    --amber: #fbbf24;
    --bg: #030303;
    --danger: #ef4444;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background-color: var(--bg);
    color: #fff;
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--amber);
}

.glass {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Aura Glow Effect */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(251, 191, 36, 0.08) 0%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: 999;
    transform: translate(-50%, -50%);
    transition:
        width 0.3s,
        height 0.3s;
}

/* Live Activity Animation */
.activity-dot {
    position: relative;
}

.activity-dot::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--amber);
    border-radius: 50%;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%,
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Floating Animation */
.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Channel List Animation */
.channel-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.channel-deleted {
    transform: translateX(20px);
    opacity: 0;
    filter: blur(10px);
}

.channel-restored {
    animation: restore-in 0.6s forwards;
}

@keyframes restore-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
        filter: brightness(2);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: brightness(1);
    }
}

/* Threat Alert Overlay */
#threat-overlay {
    pointer-events: none;
    transition: opacity 0.3s;
}

.glitch-text {
    animation: glitch 0.2s infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.reveal {
    visibility: hidden;
}

.event-node {
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 1.5rem;
}

.event-node::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 0;
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    transition: background 0.3s;
}

.event-node.active::before {
    background: var(--amber);
    box-shadow: 0 0 10px var(--amber);
}

/* Threat Message Deletion Animation */
[data-message-type="threat"] {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Threat Neutralized Banner */
#threat-neutralized-banner {
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.2);
}
