/**
 * NumoisAI Demo Theme
 * Inspired by Microsoft's modern design language
 * Color palette: Blues, Teals, Coral/Orange accents
 */

:root {
    /* Primary Colors - Microsoft-inspired Blues */
    --primary-blue: #0078D4;
    --primary-blue-dark: #005A9E;
    --primary-blue-light: #50E6FF;
    
    /* Secondary Colors - Teal/Cyan */
    --secondary-teal: #00B7C3;
    --secondary-teal-dark: #008B94;
    --secondary-teal-light: #18A2B8;
    
    /* Accent Colors - Coral/Orange (avoiding purple) */
    --accent-coral: #FF8C42;
    --accent-orange: #FF6B35;
    --accent-warm: #F77F00;
    
    /* Neutral Colors */
    --neutral-white: #FFFFFF;
    --neutral-gray-50: #F8F9FA;
    --neutral-gray-100: #F3F4F6;
    --neutral-gray-200: #E5E7EB;
    --neutral-gray-300: #D1D5DB;
    --neutral-gray-400: #9CA3AF;
    --neutral-gray-500: #6B7280;
    --neutral-gray-600: #4B5563;
    --neutral-gray-700: #374151;
    --neutral-gray-800: #1F2937;
    --neutral-gray-900: #111827;
    
    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: var(--primary-blue);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0078D4 0%, #00B7C3 100%);
    --gradient-accent: linear-gradient(135deg, #FF8C42 0%, #F77F00 100%);
    --gradient-hero: linear-gradient(135deg, #0078D4 0%, #50E6FF 50%, #00B7C3 100%);
    --gradient-subtle: linear-gradient(180deg, #F8F9FA 0%, #FFFFFF 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--neutral-gray-800);
    background-color: var(--neutral-gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--neutral-gray-900);
}

h1 { font-size: var(--font-size-4xl); margin-bottom: var(--spacing-lg); }
h2 { font-size: var(--font-size-3xl); margin-bottom: var(--spacing-md); }
h3 { font-size: var(--font-size-2xl); margin-bottom: var(--spacing-md); }
h4 { font-size: var(--font-size-xl); margin-bottom: var(--spacing-sm); }
h5 { font-size: var(--font-size-lg); margin-bottom: var(--spacing-sm); }
h6 { font-size: var(--font-size-base); margin-bottom: var(--spacing-sm); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--neutral-gray-600);
}

/* Layout Components */
.demo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.demo-container-fluid {
    width: 100%;
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.demo-card {
    background: var(--neutral-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.demo-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.demo-card-header {
    border-bottom: 2px solid var(--neutral-gray-100);
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.demo-card-title {
    font-size: var(--font-size-2xl);
    color: var(--primary-blue);
    font-weight: 600;
}

.demo-card-subtitle {
    font-size: var(--font-size-sm);
    color: var(--neutral-gray-500);
    margin-top: var(--spacing-xs);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    font-family: var(--font-family);
    gap: var(--spacing-sm);
}

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

.btn-primary {
    background: var(--primary-blue);
    color: var(--neutral-white);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-blue-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary-teal);
    color: var(--neutral-white);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--secondary-teal-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--neutral-white);
    position: relative;
    overflow: hidden;
}

.btn-accent:hover:not(:disabled) {
    box-shadow: var(--shadow-xl);
    transform: translateY(-1px);
}

.btn-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F77F00 0%, #FF6B35 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-accent:hover:not(:disabled)::before {
    opacity: 1;
}

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

.btn-outline:hover:not(:disabled) {
    background: var(--primary-blue);
    color: var(--neutral-white);
}

.btn-ghost {
    background: transparent;
    color: var(--primary-blue);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--neutral-gray-100);
}

.btn-sm {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--font-size-lg);
}

/* Form Elements */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--neutral-gray-700);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--spacing-md);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    border: 2px solid var(--neutral-gray-200);
    border-radius: var(--radius-md);
    background: var(--neutral-white);
    color: var(--neutral-gray-800);
    transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

.form-input::placeholder {
    color: var(--neutral-gray-400);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-helper {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--neutral-gray-500);
}

.form-error {
    color: var(--error);
}

/* Badges & Tags */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: rgba(0, 120, 212, 0.1);
    color: var(--primary-blue);
}

.badge-secondary {
    background: rgba(0, 183, 195, 0.1);
    color: var(--secondary-teal);
}

.badge-accent {
    background: rgba(255, 140, 66, 0.1);
    color: var(--accent-orange);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* Alerts & Notifications */
.alert {
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid;
    margin-bottom: var(--spacing-lg);
}

.alert-info {
    background: rgba(0, 120, 212, 0.05);
    border-color: var(--primary-blue);
    color: var(--neutral-gray-800);
}

.alert-success {
    background: rgba(16, 185, 129, 0.05);
    border-color: var(--success);
    color: var(--neutral-gray-800);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.05);
    border-color: var(--warning);
    color: var(--neutral-gray-800);
}

.alert-error {
    background: rgba(239, 68, 68, 0.05);
    border-color: var(--error);
    color: var(--neutral-gray-800);
}

/* Progress & Loading */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--neutral-gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--neutral-gray-200);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Hero Section */
.demo-hero {
    background: var(--gradient-hero);
    color: var(--neutral-white);
    padding: var(--spacing-3xl) var(--spacing-lg);
    border-radius: var(--radius-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.demo-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.demo-hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.demo-hero-subtitle {
    font-size: var(--font-size-xl);
    opacity: 0.9;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-2xl) 0;
}

.feature-card {
    background: var(--neutral-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 2px solid var(--neutral-gray-100);
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: var(--neutral-white);
    font-size: var(--font-size-2xl);
}

.feature-title {
    font-size: var(--font-size-xl);
    color: var(--neutral-gray-900);
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    color: var(--neutral-gray-600);
    line-height: 1.6;
}

/* Stats Display */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-2xl) 0;
}

.stat-card {
    background: var(--neutral-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.stat-value {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--neutral-gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Chat Interface */
.chat-container {
    background: var(--neutral-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
}

.chat-header {
    background: var(--gradient-primary);
    color: var(--neutral-white);
    padding: var(--spacing-lg);
    font-weight: 600;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
    background: var(--neutral-gray-50);
}

.chat-message {
    margin-bottom: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-md);
}

.chat-message-user {
    flex-direction: row-reverse;
}

.chat-message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-white);
    font-weight: 600;
    flex-shrink: 0;
}

.chat-message-content {
    background: var(--neutral-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    max-width: 70%;
    box-shadow: var(--shadow-sm);
}

.chat-message-user .chat-message-content {
    background: var(--primary-blue);
    color: var(--neutral-white);
}

.chat-input-container {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--neutral-gray-200);
    display: flex;
    gap: var(--spacing-md);
}

.chat-input {
    flex: 1;
    padding: var(--spacing-md);
    border: 2px solid var(--neutral-gray-200);
    border-radius: var(--radius-lg);
    font-family: var(--font-family);
}

/* Voice Indicator */
.voice-indicator {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--gradient-primary);
    color: var(--neutral-white);
    border-radius: var(--radius-full);
    font-weight: 600;
}

.voice-wave {
    display: flex;
    gap: 3px;
    align-items: center;
}

.voice-bar {
    width: 3px;
    height: 16px;
    background: var(--neutral-white);
    border-radius: var(--radius-full);
    animation: voice-pulse 1s ease-in-out infinite;
}

.voice-bar:nth-child(2) { animation-delay: 0.1s; }
.voice-bar:nth-child(3) { animation-delay: 0.2s; }

@keyframes voice-pulse {
    0%, 100% { height: 16px; }
    50% { height: 8px; }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

/* Responsive Design */
@media (max-width: 768px) {
    .demo-hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .demo-hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .feature-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .chat-container {
        height: 500px;
    }
    
    .chat-message-content {
        max-width: 85%;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent-coral);
}

/* ============================================
   VOICE UI ANIMATIONS
   ============================================ */

/* Voice Orb Animations */
@keyframes voicePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 120, 212, 0.7),
                    0 0 0 0 rgba(0, 183, 195, 0.5);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(0, 120, 212, 0.4),
                    0 0 0 40px rgba(0, 183, 195, 0.2);
    }
    100% {
        box-shadow: 0 0 0 40px rgba(0, 120, 212, 0),
                    0 0 0 60px rgba(0, 183, 195, 0);
    }
}

@keyframes voiceSpeak {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    25% {
        transform: scale(1.05);
        filter: brightness(1.1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.2);
    }
    75% {
        transform: scale(1.05);
        filter: brightness(1.1);
    }
}

@keyframes voiceRipple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Audio Wave Animations */
@keyframes waveOscillate {
    0%, 100% {
        height: 20px;
    }
    50% {
        height: 60px;
    }
}

@keyframes waveGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 120, 212, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(0, 120, 212, 0.8);
    }
}

/* Equalizer Animation */
@keyframes equalizerBounce {
    0%, 100% {
        transform: scaleY(0.3);
    }
    50% {
        transform: scaleY(1);
    }
}

/* Gradient Flow Animation */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Breathing Animation */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Listening Indicator */
@keyframes listeningPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Recording Dot Animation */
@keyframes recordingBlink {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
    }
    50% {
        opacity: 0.3;
        box-shadow: 0 0 5px rgba(239, 68, 68, 0.4);
    }
}

/* Sound Wave Bars */
@keyframes soundWave1 {
    0%, 100% { height: 10px; }
    50% { height: 50px; }
}

@keyframes soundWave2 {
    0%, 100% { height: 20px; }
    50% { height: 60px; }
}

@keyframes soundWave3 {
    0%, 100% { height: 15px; }
    50% { height: 45px; }
}

@keyframes soundWave4 {
    0%, 100% { height: 25px; }
    50% { height: 70px; }
}

@keyframes soundWave5 {
    0%, 100% { height: 18px; }
    50% { height: 55px; }
}

/* Voice Activity Indicator */
@keyframes voiceActivity {
    0% {
        transform: scaleX(1);
        opacity: 0.7;
    }
    50% {
        transform: scaleX(1.5);
        opacity: 1;
    }
    100% {
        transform: scaleX(1);
        opacity: 0.7;
    }
}

/* Microphone Icon Animation */
@keyframes micBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Status Indicator Blink */
@keyframes statusBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Glow Pulse */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 120, 212, 0.5),
                    0 0 20px rgba(0, 120, 212, 0.3),
                    0 0 30px rgba(0, 120, 212, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 120, 212, 0.8),
                    0 0 40px rgba(0, 120, 212, 0.5),
                    0 0 60px rgba(0, 120, 212, 0.3);
    }
}

/* Spectrum Analyzer */
@keyframes spectrumBar1 {
    0%, 100% { height: 30%; }
    50% { height: 90%; }
}

@keyframes spectrumBar2 {
    0%, 100% { height: 50%; }
    50% { height: 70%; }
}

@keyframes spectrumBar3 {
    0%, 100% { height: 40%; }
    50% { height: 95%; }
}

@keyframes spectrumBar4 {
    0%, 100% { height: 60%; }
    50% { height: 80%; }
}

@keyframes spectrumBar5 {
    0%, 100% { height: 35%; }
    50% { height: 85%; }
}

/* Utility Classes for Voice UI */
.voice-orb-active {
    animation: voicePulse 2s infinite ease-in-out;
}

.voice-speaking {
    animation: voiceSpeak 0.8s infinite alternate ease-in-out;
}

.voice-listening {
    animation: listeningPulse 2s infinite ease-in-out;
}

.audio-wave {
    animation: waveOscillate 1s infinite ease-in-out;
}

.gradient-animated {
    background-size: 200% 200%;
    animation: gradientFlow 3s ease infinite;
}

.shimmer-effect {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.recording-indicator {
    animation: recordingBlink 1s infinite;
}

.voice-breathe {
    animation: breathe 3s infinite ease-in-out;
}

/* Voice UI Component Styles */
.voice-visualizer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.voice-visualizer-bar {
    width: 4px;
    background: var(--primary-blue);
    border-radius: var(--radius-sm);
    transition: height var(--transition-fast);
}

.voice-visualizer-bar:nth-child(1) { animation: soundWave1 1.2s infinite ease-in-out; }
.voice-visualizer-bar:nth-child(2) { animation: soundWave2 1.1s infinite ease-in-out; }
.voice-visualizer-bar:nth-child(3) { animation: soundWave3 1.3s infinite ease-in-out; }
.voice-visualizer-bar:nth-child(4) { animation: soundWave4 1s infinite ease-in-out; }
.voice-visualizer-bar:nth-child(5) { animation: soundWave5 1.4s infinite ease-in-out; }

.voice-status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--success);
    animation: statusBlink 2s infinite;
}

.voice-microphone-active {
    animation: micBounce 0.6s infinite ease-in-out;
}

/* Spectrum Analyzer Component */
.spectrum-analyzer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    height: 60px;
}

.spectrum-bar {
    width: 6px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.spectrum-bar:nth-child(1) { animation: spectrumBar1 0.8s infinite ease-in-out; }
.spectrum-bar:nth-child(2) { animation: spectrumBar2 1s infinite ease-in-out; }
.spectrum-bar:nth-child(3) { animation: spectrumBar3 0.9s infinite ease-in-out; }
.spectrum-bar:nth-child(4) { animation: spectrumBar4 1.1s infinite ease-in-out; }
.spectrum-bar:nth-child(5) { animation: spectrumBar5 0.85s infinite ease-in-out; }

/* Voice Activity Visualization */
.voice-activity-meter {
    height: 4px;
    background: var(--neutral-gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.voice-activity-level {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-fast);
    animation: voiceActivity 1s infinite ease-in-out;
}
