* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.container {
    background: white;
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    text-align: center;
}

h1 {
    color: #1F2937;
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 700;
}

.mic-container {
    position: relative;
    margin: 40px auto;
    width: 140px;
    height: 140px;
}

.mic-button {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #3B82F6;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.mic-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.mic-button:active {
    transform: scale(0.95);
}

.mic-button.initializing {
    background: #9CA3AF;
    cursor: not-allowed;
}

.mic-button.listening {
    background: #3B82F6;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.mic-button.speaking {
    background: #10B981;
    animation: pulse 1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 10px 50px rgba(59, 130, 246, 0.6);
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.mic-icon {
    width: 60px;
    height: 60px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.status {
    font-size: 18px;
    color: #4B5563;
    margin: 20px 0;
    font-weight: 500;
    min-height: 24px;
}

.volume-container {
    margin: 30px auto;
    max-width: 300px;
}

.volume-label {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.volume-meter {
    width: 100%;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.volume-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #f59e0b 60%, #ef4444 100%);
    width: 0%;
    transition: width 0.1s ease-out;
    border-radius: 4px;
}

.error {
    background: #fee2e2;
    color: #ef4444;
    padding: 16px;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 14px;
    display: none;
    animation: slideIn 0.3s ease-out;
}

.error.show {
    display: block;
}

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

.info {
    background: #f3f4f6;
    padding: 20px;
    border-radius: 12px;
    margin-top: 30px;
}

.info h3 {
    color: #1F2937;
    font-size: 16px;
    margin-bottom: 8px;
}

.info p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.audio-data {
    margin-top: 20px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    font-family: monospace;
    font-size: 12px;
    color: #4b5563;
    display: none;
}

.audio-data.show {
    display: block;
}

/* Minimal Corporate Voice Indicator Design */
.voice-indicator {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 40px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-ring {
    position: absolute;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.outer-ring {
    width: 160px;
    height: 160px;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.2);
    opacity: 0.3;
}

.middle-ring {
    width: 120px;
    height: 120px;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.3);
    opacity: 0.4;
}

.inner-ring {
    width: 80px;
    height: 80px;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.4);
    opacity: 0.5;
}

.center-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f8fafc;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.04);
    z-index: 10;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Center circle logo */
.center-circle img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Default listening state */
.voice-indicator .center-circle {
    background: white;
    border-color: rgba(148, 163, 184, 0.15);
}

/* Keep center always white */
.voice-indicator .center-circle {
    background: white !important;
    border-color: rgba(148, 163, 184, 0.15) !important;
}

/* Improved container for mobile */
body {
    padding: 10px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: 100%;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

/* Modern status text */
.status {
    font-size: 22px;
    color: #7c3aed;
    margin: 25px 0;
    font-weight: 600;
    min-height: 35px;
    text-align: center;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* Hidden elements for cleaner look */
.volume-container {
    display: none;
}

.audio-data {
    display: none;
}

.info {
    display: none;
}

/* Interactive mode styles */
.start-button {
    background: #3B82F6;
    border: none;
    border-radius: 50%;
    width: 128px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.start-button:active {
    transform: scale(0.95);
}

.start-button svg {
    width: 64px;
    height: 64px;
    fill: white;
}

.description {
    text-align: center;
    margin-top: 20px;
}

.description h2 {
    color: #3B82F6;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.description p {
    color: #6b7280;
    font-size: 18px;
    line-height: 1.6;
    margin: 0 20px;
    font-weight: 500;
}

.stop-button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #EF4444;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.stop-button:hover {
    background: #DC2626;
}

.stop-button:active {
    transform: scale(0.95);
}

.stop-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Control Buttons Container */
.control-buttons {
    display: flex;
    position: fixed;
    bottom: 32px;
    width: 100%;
    left: 0;
    justify-content: center;
   
}

.button-row {
    display: flex;
    gap: 24px;
    align-items: center;
    border-radius: 16px;
    width: 80%;
    justify-content: space-between;

}

/* Icon Button Base Style */
.icon-button {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6B7280;
    background: #F9FAFB;

}

.icon-button:hover {
    background: #E5E7EB;
}

.icon-button:active {
    transform: scale(0.95);
}

.icon-button svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

.icon-button#muteButton.muted {
    color: #EF4444;
    background: #FEE2E2;
}

.icon-button#muteButton.muted:hover {
    background: #FECACA;
}

/* Mute Button Styles */
.mute-button {
    background: #f3f4f6;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.mute-button:hover {
    background: #e5e7eb;
}

.mute-button.muted {
    background: #fee2e2;
    color: #ef4444;
}

.mute-button.muted:hover {
    background: #fecaca;
}

.mute-button svg {
    fill: currentColor;
    width: 20px;
    height: 20px;
    margin-right: 6px;
    vertical-align: middle;
}

/* Refresh Button Styles */
.refresh-button {
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.refresh-button:hover {
    background: #E5E7EB;
}

.refresh-button:active {
    transform: scale(0.95);
}

.refresh-button svg {
    fill: currentColor;
    width: 20px;
    height: 20px;
    margin-right: 6px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.refresh-button:hover svg {
    transform: rotate(180deg);
}

/* Status-based animations */
.voice-indicator.searching .middle-ring {
    animation: pulse-search 1.5s ease-in-out infinite, rotate-gradient 4s linear infinite;
}

.voice-indicator.searching .outer-ring {
    animation: pulse-outer 2s ease-in-out infinite;
}

.voice-indicator.internet-searching .middle-ring {
    animation: rotate-fast 1s linear infinite;
}

.voice-indicator.internet-searching .inner-ring {
    animation: pulse-glow 1.5s ease-in-out infinite;
}

/* Processing/Thinking animation - minimal dots */
.voice-indicator.processing .outer-ring {
    border-color: rgba(245, 158, 11, 0.2);
    animation: none;
}

.voice-indicator.processing .middle-ring {
    border-color: rgba(245, 158, 11, 0.3);
    animation: none;
}

.voice-indicator.processing .inner-ring {
    border-color: rgba(245, 158, 11, 0.4);
    animation: none;
}

.voice-indicator.processing .center-circle {
    /* Center stays white */
}

.voice-indicator.processing .center-circle img {
    animation: logo-thinking 2s ease-in-out infinite;
}

.voice-indicator.searching .center-circle img {
    animation: logo-scan 2s ease-in-out infinite;
}

.voice-indicator.internet-searching .center-circle img {
    animation: logo-pulse-rotate 1.5s ease-in-out infinite;
}

@keyframes pulse-search {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.9;
    }
}

@keyframes pulse-outer {
    0%, 100% {
        box-shadow: 
            inset 0 0 0 1px rgba(59, 130, 246, 0.2),
            0 0 60px rgba(59, 130, 246, 0.2);
    }
    50% {
        box-shadow: 
            inset 0 0 0 1px rgba(59, 130, 246, 0.4),
            0 0 80px rgba(59, 130, 246, 0.4);
    }
}

@keyframes rotate-fast {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        background: radial-gradient(
            circle,
            rgba(16, 185, 129, 0.3) 0%,
            rgba(16, 185, 129, 0.1) 100%
        );
    }
    50% {
        background: radial-gradient(
            circle,
            rgba(16, 185, 129, 0.5) 0%,
            rgba(16, 185, 129, 0.2) 100%
        );
    }
}

@keyframes pulse-center {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 8px 32px rgba(245, 158, 11, 0.4),
            inset 0 2px 4px rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 
            0 12px 48px rgba(245, 158, 11, 0.6),
            inset 0 2px 4px rgba(255, 255, 255, 0.3);
    }
}

/* Thinking animations */
@keyframes thinking-scan {
    0% {
        transform: rotate(0deg);
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(245, 158, 11, 0.1) 25%, 
            rgba(245, 158, 11, 0.3) 50%, 
            rgba(245, 158, 11, 0.1) 75%, 
            transparent 100%
        );
    }
    100% {
        transform: rotate(360deg);
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(245, 158, 11, 0.1) 25%, 
            rgba(245, 158, 11, 0.3) 50%, 
            rgba(245, 158, 11, 0.1) 75%, 
            transparent 100%
        );
    }
}

@keyframes thinking-rotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(0.9);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

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

@keyframes thinking-blink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.95);
    }
}

/* Different color schemes for different statuses */
/* Center circle always stays white - only rings change color */

/* AI Speaking animation - minimal corporate style */
.voice-indicator.ai-speaking .outer-ring {
    animation: minimal-fade 2s ease-in-out infinite;
    border-color: rgba(59, 130, 246, 0.3);
}

.voice-indicator.ai-speaking .middle-ring {
    animation: minimal-fade 2s ease-in-out infinite 0.2s;
    border-color: rgba(59, 130, 246, 0.4);
}

.voice-indicator.ai-speaking .inner-ring {
    animation: minimal-fade 2s ease-in-out infinite 0.4s;
    border-color: rgba(59, 130, 246, 0.5);
}

.voice-indicator.ai-speaking .center-circle {
    /* Center stays white - removed animation for minimal look */
}

.voice-indicator.ai-speaking .center-circle img {
    animation: logo-breathing 2s ease-in-out infinite;
}

/* User Speaking animation */
.voice-indicator.user-speaking .outer-ring {
    animation: sound-wave 1.5s ease-in-out infinite;
}

.voice-indicator.user-speaking .middle-ring {
    animation: sound-wave 1.5s ease-in-out infinite 0.1s;
}

.voice-indicator.user-speaking .inner-ring {
    animation: sound-wave 1.5s ease-in-out infinite 0.2s;
}

.voice-indicator.user-speaking .center-circle {
    /* Center stays white - no animation for minimal look */
}

.voice-indicator.user-speaking .center-circle img {
    animation: logo-bounce 0.5s ease-in-out infinite;
}

/* Listening to user (Sizi dinliyorum) state */
.voice-indicator.listening-active .center-circle img {
    animation: logo-focus 1.5s ease-in-out infinite;
}

@keyframes sound-wave {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    25% {
        transform: scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    75% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

@keyframes speaking-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 8px 32px rgba(59, 130, 246, 0.4),
            inset 0 2px 4px rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 12px 40px rgba(59, 130, 246, 0.6),
            inset 0 2px 4px rgba(255, 255, 255, 0.3);
    }
}

/* Minimal animations */
@keyframes minimal-fade {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes subtle-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

@keyframes side-dots {
    0%, 100% {
        opacity: 0.3;
        box-shadow: 
            -16px 0 0 0 rgba(255, 255, 255, 0.3),
            16px 0 0 0 rgba(255, 255, 255, 0.3);
    }
    33% {
        opacity: 1;
        box-shadow: 
            -16px 0 0 0 rgba(255, 255, 255, 1),
            16px 0 0 0 rgba(255, 255, 255, 0.3);
    }
    66% {
        opacity: 1;
        box-shadow: 
            -16px 0 0 0 rgba(255, 255, 255, 0.3),
            16px 0 0 0 rgba(255, 255, 255, 1);
    }
}

@keyframes wave-expand {
    0%, 100% {
        width: 20px;
        opacity: 0.5;
    }
    50% {
        width: 40px;
        opacity: 1;
    }
}

@keyframes wave-morph {
    0% {
        transform: translate(-50%, -50%) scaleY(1);
        width: 30px;
    }
    25% {
        transform: translate(-50%, -50%) scaleY(3);
        width: 25px;
    }
    50% {
        transform: translate(-50%, -50%) scaleY(1);
        width: 35px;
    }
    75% {
        transform: translate(-50%, -50%) scaleY(2);
        width: 28px;
    }
    100% {
        transform: translate(-50%, -50%) scaleY(1);
        width: 30px;
    }
}

@keyframes ai-orbit {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: rotate(90deg) scale(1.1);
        opacity: 0.9;
    }
    50% {
        transform: rotate(180deg) scale(1);
        opacity: 0.7;
    }
    75% {
        transform: rotate(270deg) scale(0.9);
        opacity: 0.5;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.7;
    }
}

@keyframes ai-breathe {
    0%, 100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    25% {
        transform: scale(1.05);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    75% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes ai-shimmer {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 
            0 0 20px rgba(59, 130, 246, 0.6),
            0 0 40px rgba(96, 165, 250, 0.3),
            inset 0 -2px 5px rgba(30, 64, 175, 0.3),
            inset 0 2px 5px rgba(147, 197, 253, 0.5);
    }
    50% {
        transform: scale(1.08) rotate(5deg);
        box-shadow: 
            0 0 30px rgba(59, 130, 246, 0.8),
            0 0 60px rgba(96, 165, 250, 0.5),
            inset 0 -2px 8px rgba(30, 64, 175, 0.4),
            inset 0 2px 8px rgba(147, 197, 253, 0.7);
    }
}

/* Response Time Indicator */
.response-time {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: transparent;
    color: #4B5563;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    letter-spacing: 0.3px;
    min-width: 140px;
    text-align: center;
}

.response-time.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.response-time.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

.response-time-icon {
    display: inline-block;
    margin-right: 6px;
    animation: pulse-icon 1.5s ease-in-out infinite;
}

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

/* Logo animations for different states */
@keyframes logo-breathing {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

@keyframes logo-bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.05);
    }
}

@keyframes logo-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes logo-scan {
    0% {
        transform: translateX(-5px);
        opacity: 0.8;
    }
    25% {
        transform: translateX(5px);
        opacity: 1;
    }
    50% {
        transform: translateX(-5px);
        opacity: 1;
    }
    75% {
        transform: translateX(5px);
        opacity: 0.8;
    }
    100% {
        transform: translateX(-5px);
        opacity: 0.8;
    }
}

@keyframes logo-pulse-rotate {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: rotate(90deg) scale(1.1);
        opacity: 1;
    }
    50% {
        transform: rotate(180deg) scale(1);
        opacity: 0.8;
    }
    75% {
        transform: rotate(270deg) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.8;
    }
}

@keyframes logo-focus {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(0.95);
        filter: brightness(1.1);
    }
}

@keyframes logo-thinking {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: scale(0.9) rotate(5deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.05) rotate(0deg);
        opacity: 0.9;
    }
    75% {
        transform: scale(0.95) rotate(-5deg);
        opacity: 1;
    }
}