/* Dapper Horse — brand-forward minimal UI */
:root {
    --dh-bg:       #f6f3ee;
    --dh-ink:      #1a1a1a;
    --dh-accent:   #8b2c20; /* deep saddle red */
    --dh-accent-2: #c9a66b; /* tack gold */
    --dh-muted:    #6e6a63;
    --dh-border:   #d9d4c9;
    --dh-success:  #1e7a44;
    --dh-error:    #b00020;
    --radius: 6px;
    --font: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--dh-bg);
    color: var(--dh-ink);
    line-height: 1.5;
}

.container {
    max-width: 720px;
    margin: 40px auto;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--dh-border);
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--dh-border);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.topbar h1 {
    margin: 0;
    font-size: 22px;
    letter-spacing: 0.3px;
    color: var(--dh-accent);
}

.topbar nav a {
    margin-left: 16px;
    color: var(--dh-muted);
    text-decoration: none;
    font-size: 14px;
}
.topbar nav a:hover { color: var(--dh-accent); }

.lead { color: var(--dh-muted); margin-bottom: 24px; }

form label {
    display: block;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 6px;
    font-size: 14px;
}

form input[type="text"],
form input[type="file"],
form input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--dh-border);
    border-radius: var(--radius);
    font-size: 15px;
    background: #fff;
    font-family: inherit;
}

form small {
    display: block;
    margin-top: 6px;
    color: var(--dh-muted);
    font-size: 12px;
}

form small code {
    background: var(--dh-bg);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 12px;
}

button {
    margin-top: 24px;
    width: 100%;
    padding: 12px 16px;
    background: var(--dh-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
button:hover:not(:disabled) { background: #6f2119; }
button:disabled { background: var(--dh-muted); cursor: not-allowed; }

#status { margin-top: 24px; }

#status .progress {
    padding: 14px 16px;
    background: #fff8e1;
    border: 1px solid var(--dh-accent-2);
    border-radius: var(--radius);
    font-size: 14px;
}
#status .progress ul { margin: 8px 0 0 20px; padding: 0; }
#status .progress li { margin: 2px 0; }
#status .progress li.done::before    { content: "✓ "; color: var(--dh-success); }
#status .progress li.active::before  { content: "→ "; color: var(--dh-accent); }
#status .progress li.pending::before { content: "•  "; color: var(--dh-muted); }

#status .success {
    padding: 16px;
    background: #eaf7ef;
    border: 1px solid var(--dh-success);
    border-radius: var(--radius);
}
#status .success p { margin: 6px 0; }
#status .success .btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 16px;
    background: var(--dh-success);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
}

#status .error {
    padding: 14px 16px;
    background: #fdecee;
    border: 1px solid var(--dh-error);
    color: var(--dh-error);
    border-radius: var(--radius);
    font-size: 14px;
    white-space: pre-wrap;
}

/* ─── Login page ───────────────────────────────────────────────────────── */
.login-body {
    background: var(--dh-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}
.login-container {
    background: #fff;
    border: 1px solid var(--dh-border);
    border-radius: var(--radius);
    padding: 36px;
    width: 320px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    text-align: center;
}
.login-container h1 {
    margin: 0;
    color: var(--dh-accent);
    font-size: 22px;
    letter-spacing: 0.5px;
}
.login-container .subtitle {
    color: var(--dh-muted);
    font-size: 13px;
    margin: 4px 0 24px;
}
.login-container form { text-align: left; }

/* ─── History table ───────────────────────────────────────────────────── */
.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 14px;
}
.history-table th,
.history-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--dh-border);
    text-align: left;
    vertical-align: top;
}
.history-table th {
    background: var(--dh-bg);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--dh-muted);
}
.history-table .status-success { color: var(--dh-success); font-weight: 600; }
.history-table .status-error   { color: var(--dh-error);   font-weight: 600; }
.history-table a { color: var(--dh-accent); text-decoration: none; }
.history-table a:hover { text-decoration: underline; }
