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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, 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: 40px;
    max-width: 500px;
    width: 100%;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #00d9ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #888;
    margin-bottom: 40px;
}

.agent-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.avatar-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #00d9ff, #00ff88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #1a1a2e;
    position: relative;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #00d9ff;
    opacity: 0;
    z-index: 1;
}

.agent-avatar.listening .pulse-ring {
    animation: pulse 1.5s ease-out infinite;
}

.agent-avatar.speaking .avatar-icon {
    animation: glow 0.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        width: 120px;
        height: 120px;
        opacity: 0.8;
    }
    100% {
        width: 180px;
        height: 180px;
        opacity: 0;
    }
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px #00d9ff;
    }
    to {
        box-shadow: 0 0 40px #00ff88;
    }
}

.status {
    font-size: 1.1rem;
    color: #00d9ff;
    margin-bottom: 30px;
    min-height: 28px;
}

.transcript-box, .response-box {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: left;
}

.label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.transcript, .response {
    font-size: 1.1rem;
    line-height: 1.5;
    min-height: 24px;
}

.response-box {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.mic-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #00d9ff, #00ff88);
    color: #1a1a2e;
    cursor: pointer;
    margin: 30px 0 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mic-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
}

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

.mic-button.listening {
    background: #ff4444;
    animation: pulse-btn 1s ease-in-out infinite;
}

@keyframes pulse-btn {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7); }
    50% { box-shadow: 0 0 0 20px rgba(255, 68, 68, 0); }
}

.hint {
    color: #555;
    font-size: 0.85rem;
}
