/* aether-voice.css */
#aether-voice-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: sans-serif;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#aether-voice-overlay.hidden {
    display: none;
    opacity: 0;
}

/* Header */
.voice-header {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.voice-model-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 10px #38bdf8;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.model-name {
    font-weight: 600;
    font-size: 14px;
}

.latency-badge {
    font-size: 12px;
    color: #9ca3af;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
}

.voice-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
}

.voice-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Avatar Canvas */
.voice-core-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

#aether-core-canvas {
    border-radius: 50%;
    /* Add subtle glow behind the canvas based on state */
    transition: box-shadow 0.3s ease;
}

/* Subtitles */
.voice-subtitles {
    position: absolute;
    bottom: 120px;
    width: 80%;
    max-width: 800px;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 16px 24px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.voice-subtitles.hidden {
    opacity: 0;
    pointer-events: none;
}

#voice-subtitle-text {
    font-size: 20px;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

/* Controls Bar */
.voice-controls-bar {
    position: absolute;
    bottom: 40px;
    display: flex;
    gap: 16px;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 24px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
}

.v-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.v-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.v-btn.exit-btn {
    width: auto;
    border-radius: 20px;
    padding: 0 20px;
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    font-size: 14px;
    font-weight: 600;
}

.v-btn.exit-btn:hover {
    background: rgba(239, 68, 68, 0.4);
}

.v-select {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.v-select option {
    background: #1e1e1e;
    color: white;
}

/* Mic Button glow */
.listening-active {
    box-shadow: 0 0 15px 5px rgba(56, 189, 248, 0.5);
    background: rgba(56, 189, 248, 0.2) !important;
    color: #38bdf8 !important;
    animation: mic-pulse 1.5s infinite;
}

@keyframes mic-pulse {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(56, 189, 248, 0.5); }
    50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(239, 68, 68, 0.6); }
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(56, 189, 248, 0.5); }
}
