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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    position: relative;
    z-index: 2;
    text-align: center;
}

#micBtn {
    position: relative;
    z-index: 3;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: none;
    background: #4CAF50;
    color: white;
    font-size: 48px;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

#micBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

#micBtn.recording {
    background: #f44336;
    animation: pulse 1.5s infinite;
}

#micBtn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

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

.provider-switch {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.provider-btn {
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.provider-btn.active {
    background: white;
    color: #667eea;
    font-weight: bold;
}

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

/* Auth overlay — covers the page when user is not logged in */
.auth-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    z-index: 100;
}

.auth-overlay p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.01em;
}