.mira-live-voice-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 20px auto;
}

.mira-live-voice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
}

.mira-live-voice-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 18px;
}

.mira-live-voice-logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.mira-live-voice-model {
    font-size: 12px;
    color: #94a3b8;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
}

.mira-live-voice-main {
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 300px;
    justify-content: center;
    align-items: center;
}

.mira-live-voice-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.mira-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mira-icon {
    width: 20px;
    height: 20px;
}

.mira-btn-primary {
    background: #3b82f6;
    color: white;
}

.mira-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.mira-btn-primary:active {
    transform: translateY(0);
}

.mira-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mira-btn-danger {
    background: #ef4444;
    color: white;
}

.mira-btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
}

.mira-btn-secondary {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.mira-btn-secondary:hover {
    background: rgba(148, 163, 184, 0.3);
    border-color: rgba(148, 163, 184, 0.5);
}

.mira-visualizer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

#mira-waveform-canvas {
    max-width: 100%;
    width: 100%;
}

.mira-status {
    text-align: center;
    font-size: 14px;
    color: #cbd5e1;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.mira-status.connecting {
    color: #fbbf24;
}

.mira-status.connected {
    color: #10b981;
}

.mira-error {
    color: #ef4444;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
    border-left: 3px solid #ef4444;
    font-size: 13px;
}

.mira-live-voice-footer {
    padding: 12px 24px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.5);
}

/* Responsive */
@media (max-width: 600px) {
    .mira-live-voice-container {
        margin: 0;
        border-radius: 0;
    }

    .mira-live-voice-controls {
        flex-direction: column;
    }

    .mira-btn {
        width: 100%;
        justify-content: center;
    }

    .mira-visualizer {
        flex-direction: column;
        height: 100px;
        gap: 12px;
    }

    .mira-bars {
        width: 100%;
        height: 30px;
    }
}

/* Loading spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.mira-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Microphone Icons Animation */
#mira-mic-on {
    transition: all 0.3s ease-in-out;
    color: #10b981;
    filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.4));
}

#mira-mic-off {
    transition: all 0.3s ease-in-out;
    color: #ef4444;
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.5));
}

#mira-mic-off circle {
    animation: pulse 0.3s ease-in-out;
}

#mira-mic-off line {
    animation: slideIn 0.3s ease-in-out;
}

@keyframes pulse {
    0% {
        r: 8;
        opacity: 0;
    }
    50% {
        r: 11;
    }
    100% {
        r: 10;
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: rotate(-45deg);
        transform-origin: center;
    }
    to {
        opacity: 1;
        transform: rotate(0deg);
    }
}
