/* assets/css/main.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
    --primary-color: #4285f4;
    --primary-hover: #3367d6;
    --bg-color: #f0f0f0;
    --card-bg: #fff;
    --text-color: #333;
    --error-color: #D32F2F;
    --success-color: #2e7d32;
    --border-color: #ccc;
    --shadow: 0 0 10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Inter', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    border-radius: 8px;
}

h1 {
    font-size: 1.8em;
    font-weight: 600;
    color: #111;
    margin-bottom: 20px;
    text-align: center;
}

h2, h3 {
    color: #1a1a1a;
    margin-top: 0;
}

p {
    margin-bottom: 1em;
}

.controls, .card {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 5px;
    background: #f9f9f9;
}

video, canvas, audio {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
    border: 1px solid var(--border-color);
    background-color: #000;
    border-radius: 4px;
}

button, select, input {
    font-family: inherit;
    font-size: 0.9em;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 500;
    text-transform: uppercase;
}

button:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.status-log, .recording-log, #status, #log {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    min-height: 1.2em;
}

.info { background: #e2e3e5; color: #383d41; }
.success { background: #d4edda; color: #155724; }
.error { background: #f8d7da; color: #721c24; }

.result-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.result-item:last-child {
    border-bottom: none;
}

@media (max-width: 600px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    h1 {
        font-size: 1.5em;
    }
}
