/* =========================================
   HELIOS CHAT - GLASS/CIRCUIT THEME
   ========================================= */

:root {
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(197, 160, 89, 0.3);
    --glass-blur: 12px;
    --neon-blue: #00f3ff;
    --neon-purple: #bc13fe;
    --neon-gold: #ffd700;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 16px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Circuit Board Texture Overlay */
.circuit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(197, 160, 89, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 160, 89, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

/* Tech Buttons (Toggles) */
.tech-btn-group {
    display: flex;
    gap: 10px;
    z-index: 2;
    position: relative;
}

.tech-toggle {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: monospace;
}

.tech-toggle.active {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
    background: rgba(0, 243, 255, 0.1);
}

.tech-toggle.active.consent {
    border-color: var(--success-color);
    color: var(--success-color);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.1);
}

/* =========================================
   HELIOS ORB ANIMATION
   ========================================= */

.helios-container {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.helios-bubble {
    position: absolute;
    top: 50%;
    right: 100%;
    /* Position to the left */
    left: auto;
    transform: translateY(-50%);
    margin-right: 15px;
    /* Spacing */
    background: var(--text-color);
    color: var(--bg-color);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    animation: fade-in-left 0.5s 1s forwards;
}

@keyframes fade-in-left {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.helios-orb {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 3px solid transparent;
    /* Thicker borders */
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.ring-1 {
    width: 100%;
    height: 100%;
    border-top-color: var(--neon-gold);
    border-bottom-color: var(--neon-purple);
    /* Multi-color */
    border-left-color: rgba(255, 215, 0, 0.3);
    animation: spin 3s linear infinite;
}

.ring-2 {
    width: 75%;
    height: 75%;
    border-left-color: var(--neon-blue);
    border-right-color: #ff00ff;
    /* Magenta */
    border-top-color: rgba(0, 243, 255, 0.3);
    animation: spin-reverse 4s linear infinite;
}

.ring-3 {
    width: 130%;
    height: 130%;
    border-top-color: var(--neon-purple);
    border-bottom-color: var(--neon-blue);
    border-right-color: rgba(188, 19, 254, 0.3);
    opacity: 0.7;
    animation: spin-tilt 6s linear infinite;
}

.ring-4 {
    /* New Ring */
    width: 50%;
    height: 50%;
    border: 2px dashed var(--neon-gold);
    animation: spin 8s linear infinite;
    opacity: 0.8;
}

.core {
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, #fff, var(--neon-gold));
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spin-reverse {
    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes spin-tilt {
    0% {
        transform: translate(-50%, -50%) rotateX(60deg) rotateZ(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateX(60deg) rotateZ(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

/* Chat Input Styling */
.glass-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--text-secondary);
    color: white;
    backdrop-filter: blur(5px);
}

.glass-input:focus {
    border-color: var(--neon-gold);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.2);
    outline: none;
}