:root {
    --bg: #f6f5f1;
    --card-bg: #ffffff;
    --text: #2a2a2a;
    --text-muted: #6b6b6b;
    --border: #e1ddd4;
    --accent: #b08756;
    --accent-hover: #94703f;
    --success: #2f8c3f;
    --error: #c0392b;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    line-height: 1.5;
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 40px;
    max-width: 560px;
    width: 100%;
}

header { text-align: center; margin-bottom: 32px; }
h1 { font-size: 28px; font-weight: 600; margin-bottom: 8px; }
.subtitle { color: var(--text-muted); font-size: 15px; }

#upload-form { display: flex; flex-direction: column; gap: 16px; }

.dropzone {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--accent);
    background: rgba(176, 135, 86, 0.04);
}

.dropzone-icon { font-size: 40px; }
.dropzone-text { font-size: 15px; }
.dropzone-text strong { color: var(--accent); }
.dropzone-hint { font-size: 13px; color: var(--text-muted); }

.file-info {
    background: rgba(176, 135, 86, 0.08);
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-primary:disabled { background: #d4d4d4; cursor: not-allowed; }

.btn-link {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    padding: 0;
}
.btn-link:hover { color: var(--accent-hover); }

.status {
    margin-top: 24px;
    padding: 20px;
    background: rgba(176, 135, 86, 0.06);
    border-radius: 10px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

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

#status-text { font-weight: 500; }
.status-hint { font-size: 13px; color: var(--text-muted); }

.result {
    margin-top: 24px;
    text-align: center;
    padding: 24px;
    background: rgba(47, 140, 63, 0.08);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.result p { color: var(--success); font-size: 18px; font-weight: 500; }

.error {
    margin-top: 24px;
    padding: 16px;
    background: rgba(192, 57, 43, 0.08);
    border-radius: 10px;
    color: var(--error);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

footer { margin-top: 32px; text-align: center; color: var(--text-muted); font-size: 12px; }

.hidden { display: none !important; }
