* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.app-container {
    background: #ffffff;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    color: #2c3e50;
    font-size: 24px;
}

header p {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 5px;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    background: rgba(0,0,0,0.6);
    padding: 10px 20px;
    border-radius: 20px;
    display: none;
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

#connect-btn {
    background-color: #27ae60;
    color: white;
}
#connect-btn:hover { background-color: #2ecc71; }

#mic-btn {
    background-color: #3498db;
    color: white;
}
#mic-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}
#mic-btn.recording {
    background-color: #e74c3c;
    animation: pulse 1.5s infinite;
}

.chat-container {
    background: #ecf0f1;
    padding: 15px;
    border-radius: 8px;
    min-height: 80px;
    font-size: 15px;
    color: #2c3e50;
    line-height: 1.5;
}

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