:root {
    --primary: #00d4ff;
    --secondary: #ff6b35;
    --bg-dark: #0a0a0a;
    --bg-panel: #1a1a2e;
    --text: #e0e0e0;
    --glow: 0 0 20px rgba(0, 212, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow: hidden;
}

#app {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.hud-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0a 100%);
    position: relative;
}

.hud-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 49%, rgba(0, 212, 255, 0.03) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(0, 212, 255, 0.03) 50%, transparent 51%);
    background-size: 50px 50px;
    pointer-events: none;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.system-status {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

#clock {
    color: var(--secondary);
}

.friday-core {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 20px 0;
}

.core-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--primary);
    box-shadow: var(--glow);
}

.core-ring.outer {
    width: 200px;
    height: 200px;
    animation: rotate 20s linear infinite;
}

.core-ring.middle {
    width: 150px;
    height: 150px;
    animation: rotate 15s linear infinite reverse;
}

.core-ring.inner {
    width: 100px;
    height: 100px;
    animation: pulse 2s ease-in-out infinite;
}

.core-center {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--bg-dark);
    box-shadow: var(--glow);
    z-index: 10;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.waveform {
    position: absolute;
    bottom: -40px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s;
}

.waveform.active {
    opacity: 1;
}

.wave-bar {
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1.5); }
}

.response-area {
    min-height: 80px;
    padding: 20px;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
}

.response-area p {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.listening-indicator {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--secondary);
    font-size: 14px;
}

.listening-indicator.active {
    display: flex;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse-dot 1s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.voice-btn, .send-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
}

.voice-btn {
    background: var(--primary);
    color: var(--bg-dark);
}

.voice-btn:hover, .voice-btn.active {
    background: var(--secondary);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.send-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.send-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

#textInput {
    flex: 1;
    height: 50px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 25px;
    color: var(--text);
    font-size: 16px;
    font-family: 'Rajdhani', sans-serif;
}

#textInput:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

#textInput::placeholder {
    color: rgba(224, 224, 224, 0.5);
}

@media (max-width: 480px) {
    .hud-container {
        padding: 15px;
    }
    
    .core-ring.outer {
        width: 150px;
        height: 150px;
    }
    
    .core-ring.middle {
        width: 110px;
        height: 110px;
    }
    
    .core-ring.inner {
        width: 70px;
        height: 70px;
    }
    
    .core-center {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}
