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

body {
    background: #0f0f0f;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 560px;
    padding: 24px;
    text-align: center;
}

h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 4px;
}

.subtitle {
    color: #888;
    font-size: 14px;
    margin-bottom: 32px;
}

.drop-zone {
    border: 2px dashed #333;
    border-radius: 12px;
    padding: 48px 24px;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drop-zone.dragover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

.drop-zone-content,
.progress-content,
.error-content,
.done-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.drop-zone-content svg {
    color: #555;
}

.drop-zone-content p {
    font-size: 15px;
}

.hint {
    color: #666;
    font-size: 13px !important;
}

.browse-link {
    color: #6366f1;
    cursor: pointer;
    text-decoration: underline;
}

.browse-link:hover {
    color: #818cf8;
}

.hidden {
    display: none !important;
}

/* Spinner */
.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #333;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.progress-content p {
    color: #aaa;
    font-size: 14px;
}

/* Error */
.error-content p {
    color: #f87171;
    font-size: 14px;
}

/* Done */
.done-content p {
    font-size: 15px;
    color: #4ade80;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.btn:hover {
    background: #4f46e5;
}

.btn-secondary {
    background: transparent;
    border: 1px solid #333;
    color: #aaa;
}

.btn-secondary:hover {
    border-color: #555;
    color: #e0e0e0;
    background: rgba(255,255,255,0.03);
}

.sf-warning {
    margin-top: 8px;
    color: #fbbf24;
    font-size: 13px;
}

.mode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    user-select: none;
}

.mode-toggle input {
    accent-color: #4f46e5;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.mode-toggle:hover {
    color: #c0c0c0;
}

/* Back link (cross-navigation between tools) */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #777;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.15s;
}

.back-link:hover {
    color: #aaa;
}

/* Tool cross-link (converter -> transcription) */
.tool-link {
    display: inline-block;
    margin-bottom: 32px;
    padding: 6px 14px;
    border: 1px solid #2a2a2a;
    border-radius: 999px;
    color: #999;
    font-size: 13px;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.tool-link:hover {
    border-color: #6366f1;
    color: #c7c9ff;
}

/* Result actions row (download + drive) */
.result-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
