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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.container {
    text-align: center;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
    color: #e0e0e0;
}

.status-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.status {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.status.connected {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.status.disconnected {
    background: rgba(244, 67, 54, 0.2);
    color: #e57373;
}

.status.listening {
    background: rgba(33, 150, 243, 0.2);
    color: #64b5f6;
}

.status.speaking {
    background: rgba(156, 39, 176, 0.2);
    color: #ba68c8;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e57373;
    transition: background 0.3s ease;
}

.indicator.connected {
    background: #81c784;
    animation: pulse 2s infinite;
}

.indicator.active {
    background: #64b5f6;
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.btn {
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

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

.btn-primary {
    background: #3f51b5;
    color: white;
    padding: 0.75rem 2rem;
}

.btn-primary:hover:not(:disabled) {
    background: #5c6bc0;
    transform: translateY(-2px);
}

.btn-mic {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.btn-mic:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-mic:active:not(:disabled),
.btn-mic.active {
    background: rgba(33, 150, 243, 0.3);
    border-color: #2196f3;
    transform: scale(0.95);
}

.mic-icon {
    width: 40px;
    height: 40px;
}

.mic-text {
    font-size: 0.75rem;
    opacity: 0.8;
}

.visualizer-container {
    margin-bottom: 2rem;
}

#visualizer {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.transcript {
    min-height: 100px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.5;
    max-height: 200px;
    overflow-y: auto;
}

.transcript:empty::before {
    content: "Transcript will appear here...";
    opacity: 0.5;
}

.transcript p {
    margin-bottom: 0.5rem;
}

.transcript .user {
    color: #64b5f6;
}

.transcript .agent {
    color: #81c784;
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.25rem;
    }

    .btn-mic {
        width: 100px;
        height: 100px;
    }

    .mic-icon {
        width: 32px;
        height: 32px;
    }
}
