body {
    background:
        radial-gradient(circle at top left, rgba(240, 106, 77, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(19, 88, 106, 0.22), transparent 26%),
        linear-gradient(180deg, #f3efe6 0%, #fbfaf7 48%, #efe4d3 100%);
    color: #1f2a30;
    font-family: Georgia, "Times New Roman", serif;
}

.body-content {
    margin-top: 24px;
    padding-left: 15px;
    padding-right: 15px;
}

.dl-horizontal dt {
    white-space: normal;
}

input,
select,
textarea {
    max-width: 280px;
}

.app-nav {
    background: linear-gradient(135deg, #1d3b45 0%, #10262d 100%);
    box-shadow: 0 14px 40px rgba(16, 38, 45, 0.25);
}

.navbar-brand {
    font-family: "Trebuchet MS", "Gill Sans", sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.upload-shell {
    padding: 12px 0 36px;
}

.hero-panel {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    align-items: stretch;
    margin-bottom: 24px;
}

.hero-copy,
.note-card,
.upload-panel,
.status-card,
.results-card {
    border: 1px solid rgba(22, 45, 51, 0.12);
    border-radius: 28px;
    background: rgba(255, 252, 246, 0.88);
    box-shadow: 0 20px 60px rgba(52, 72, 83, 0.12);
}

.hero-copy {
    padding: 32px;
}

.hero-copy h1 {
    margin: 0 0 16px;
    color: #132a31;
    font-size: 2.7rem;
    line-height: 1.02;
}

.eyebrow,
.status-label,
.note-label {
    margin: 0 0 10px;
    color: #9b4a2f;
    font-family: "Trebuchet MS", "Gill Sans", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-text,
.status-message,
.note-card p,
.results-subtitle,
.job-output-name,
.job-error,
.dropzone-text {
    color: #485b60;
}

.hero-note {
    display: flex;
}

.note-card {
    width: 100%;
    padding: 28px;
    background: linear-gradient(160deg, #f6ccb2 0%, #fff8f0 100%);
}

.note-card strong {
    display: block;
    margin-bottom: 12px;
    color: #4c2015;
    font-size: 1.4rem;
}

.workspace-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: start;
}

.upload-alert {
    border-radius: 18px;
    margin-bottom: 24px;
}

.upload-panel,
.status-card,
.results-card {
    padding: 24px;
}

.dropzone {
    display: block;
    padding: 42px 24px;
    border: 2px dashed #c97b58;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 246, 236, 0.96) 0%, rgba(255, 250, 243, 0.8) 100%);
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dropzone:hover,
.dropzone.is-dragging {
    border-color: #1d596a;
    box-shadow: 0 18px 40px rgba(29, 89, 106, 0.15);
    transform: translateY(-1px);
}

.file-input {
    display: none;
}

.dropzone-kicker,
.dropzone-title,
.dropzone-text {
    display: block;
}

.dropzone-kicker {
    margin-bottom: 10px;
    color: #9b4a2f;
    font-family: "Trebuchet MS", "Gill Sans", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.dropzone-title {
    margin-bottom: 12px;
    color: #17343d;
    font-size: 1.7rem;
    font-weight: 700;
}

.selection-panel {
    margin-top: 18px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(243, 239, 230, 0.9);
}

.selection-header,
.results-header,
.status-topline,
.job-item-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.selection-header h2,
.results-header h2,
.status-card h2 {
    margin: 0;
    color: #17343d;
}

.file-count {
    color: #6e6259;
    font-family: "Trebuchet MS", "Gill Sans", sans-serif;
    font-size: 0.92rem;
}

.selected-files,
.job-items {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.selected-files li,
.job-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(23, 52, 61, 0.08);
}

.job-item {
    display: block;
    padding: 16px 0;
}

.selected-files li:last-child,
.job-item:last-child {
    border-bottom: 0;
}

.empty-state,
.job-empty {
    color: #7c726a;
    padding: 4px 0;
}

.upload-button {
    width: 100%;
    margin-top: 18px;
    padding: 14px 18px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #1c5868 0%, #183741 100%);
    color: #fffaf3;
    font-family: "Trebuchet MS", "Gill Sans", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.upload-button:hover,
.upload-button:focus {
    color: #fffaf3;
    background: linear-gradient(135deg, #22677a 0%, #1b4652 100%);
}

.upload-button:disabled {
    opacity: 0.7;
}

.status-badge,
.job-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-family: "Trebuchet MS", "Gill Sans", sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-badge.idle,
.status-badge.queued,
.job-pill.queued {
    background: #efe3c2;
    color: #775900;
}

.status-badge.running,
.job-pill.running {
    background: #d7edf2;
    color: #15566a;
}

.status-badge.completed,
.job-pill.completed {
    background: #ddefdd;
    color: #226141;
}

.status-badge.completed_with_errors {
    background: #f9e0c8;
    color: #934b10;
}

.status-badge.failed,
.job-pill.failed {
    background: #f5d3d0;
    color: #8d2f25;
}

.progress-track {
    height: 14px;
    margin: 18px 0;
    border-radius: 999px;
    background: rgba(24, 55, 65, 0.1);
    overflow: hidden;
}

.progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #d86f45 0%, #1b5969 100%);
    transition: width 0.35s ease;
}

.status-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.metric-label {
    display: block;
    color: #7c726a;
    font-family: "Trebuchet MS", "Gill Sans", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-metrics strong {
    font-size: 1.5rem;
}

.results-card {
    margin-top: 24px;
}

.results-subtitle {
    font-size: 0.92rem;
}

.job-item h3 {
    margin: 0;
    color: #17343d;
    font-size: 1.02rem;
}

.job-output-name,
.job-error,
.job-actions {
    margin: 8px 0 0;
}

.job-error {
    color: #8d2f25;
}

.download-link {
    color: #15566a;
    font-family: "Trebuchet MS", "Gill Sans", sans-serif;
    font-weight: 700;
    text-decoration: none;
}

.download-link:hover,
.download-link:focus {
    text-decoration: underline;
}

.download-placeholder {
    color: #7c726a;
}

@media (max-width: 991px) {
    .hero-panel,
    .workspace-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 575px) {
    .hero-copy,
    .note-card,
    .upload-panel,
    .status-card,
    .results-card {
        padding: 20px;
    }

    .dropzone {
        padding: 32px 18px;
    }

    .dropzone-title {
        font-size: 1.4rem;
    }

    .status-metrics {
        grid-template-columns: 1fr;
    }
}
