:root {
    --primary-color: #00f3ff;
    --secondary-color: #bc13fe;
    --bg-color: #050510;
    --panel-bg: rgba(10, 10, 30, 0.8);
    --text-color: #e0e0ff;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Background Effects */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
    opacity: 0.6;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #000 130%);
    pointer-events: none;
    z-index: 9;
}

/* Container */
.container {
    width: 100%;
    max-width: 500px;
    height: 90vh;
    background: var(--panel-bg);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2), inset 0 0 50px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 11;
    backdrop-filter: blur(10px);
}

/* Header */
.header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    animation: blink 2s infinite;
}

.status-text {
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.connection-status {
    font-family: var(--font-heading);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Visualizer */
.visualizer-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.circle-visualizer {
    width: 200px;
    height: 200px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    opacity: 0.3;
}

.ring-1 { width: 100%; height: 100%; animation: spin 10s linear infinite; border-top-color: transparent; }
.ring-2 { width: 80%; height: 80%; animation: spin 5s linear infinite reverse; border-right-color: transparent; border-color: var(--secondary-color); }
.ring-3 { width: 60%; height: 60%; animation: pulse-ring 2s infinite; border: 1px solid var(--primary-color); }

.core-pulse {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--primary-color);
}

.speaking .core-pulse {
    animation: pulse 0.5s infinite alternate;
}

.speaking .ring-3 {
    border-width: 4px;
    box-shadow: 0 0 20px var(--secondary-color);
}

/* Log Display */
.log-display {
    height: 150px;
    background: rgba(0, 0, 0, 0.6);
    margin: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    font-family: 'Consolas', monospace;
    font-size: 12px;
    color: #4af;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.log-entry {
    opacity: 0.8;
}
.log-entry.user { color: var(--primary-color); }
.log-entry.ai { color: var(--secondary-color); }
.log-entry.system { color: #888; font-style: italic; }

/* Controls */
.controls {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.talk-button {
    width: 100%;
    height: 80px;
    background: rgba(0, 243, 255, 0.1);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 24px;
    letter-spacing: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    text-shadow: 0 0 10px var(--primary-color);
}

.talk-button:active, .talk-button.active {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 50px var(--primary-color);
}

.talk-button .glow-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

.input-group {
    display: flex;
    gap: 10px;
}

input {
    flex: 1;
    background: transparent;
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: var(--primary-color);
    padding: 10px;
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
}
input::placeholder { color: rgba(0, 243, 255, 0.3); }
input:focus { border-color: var(--primary-color); background: rgba(0, 243, 255, 0.05); }

.send-button {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 0 20px;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: 0.3s;
}
.send-button:hover { box-shadow: 0 0 15px var(--secondary-color); }

/* Animations */
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0.3; } }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.5); opacity: 1; } }
@keyframes pulse-ring { 0% { transform: scale(0.9); opacity: 0.5; } 50% { transform: scale(1.1); opacity: 0.1; } 100% { transform: scale(0.9); opacity: 0.5; } }
@keyframes shine { 100% { left: 200%; } }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--primary-color); }
