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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f0f2f5;
    color: #1a1a2e;
    line-height: 1.6;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px;
}

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

header h1 {
    font-size: 2rem;
    color: #1a1a2e;
}

.subtitle {
    color: #666;
    font-size: 1rem;
    margin-top: 4px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: #1a1a2e;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #4a6cf7;
}

button[type="submit"], .download-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #4a6cf7;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}

button[type="submit"]:hover, .download-btn:hover {
    background: #3a5ce5;
}

button[type="submit"]:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* Progress */
.progress-area {
    margin-top: 20px;
}

.progress-bar-container {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    height: 100%;
    background: #4a6cf7;
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

#progress-steps {
    font-size: 0.9rem;
    color: #555;
}

.progress-step {
    padding: 4px 0;
}

.progress-step.active {
    color: #4a6cf7;
    font-weight: 600;
}

.progress-step.done {
    color: #27ae60;
}

/* Result */
.result-area {
    margin-top: 20px;
    text-align: center;
}

.result-area h3 {
    margin-bottom: 12px;
    color: #27ae60;
}

.result-area audio {
    width: 100%;
    margin-bottom: 12px;
}

/* Past briefings */
.briefing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

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

.briefing-date {
    font-weight: 600;
    display: block;
}

.briefing-meta {
    font-size: 0.85rem;
    color: #888;
}

.briefing-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.play-btn {
    padding: 6px 16px;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}

.play-btn:hover {
    background: #219a52;
}

.download-btn.small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.empty-state {
    color: #999;
    text-align: center;
    padding: 20px 0;
}

.hidden {
    display: none;
}

.error-message {
    color: #e74c3c;
    font-weight: 600;
    margin-top: 8px;
}
