:root {
    --primary: #2196F3;
    --success: #4CAF50;
    --danger: #f44336;
    --warning: #ff9800;
    --dark: #333;
    --light: #fff;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--light);
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: var(--dark);
    margin-bottom: 2rem;
}

.controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
    color: var(--light);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    opacity: 0.9;
}

#startBtn { background: var(--primary); }
#downloadBtn { background: var(--dark); }
#clearBtn { background: var(--warning); }
#sendBtn { background: var(--success); }

#startBtn.recording {
    background: var(--danger);
    animation: pulse 1.5s infinite;
}

.transcript-container {
    margin: 1.5rem 0;
}

#transcript {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
    font-family: inherit;
}

.status-container {
    text-align: center;
    margin-top: 1rem;
}

.loader {
    display: none;
    margin: 0 auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}