* {
    box-sizing: border-box;
}

body {
    margin: 0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #f5f6f8;
    color: #222;
}


.navbar {
    height: 60px;

    background: #1f2937;
    color: white;

    display: flex;
    align-items: center;

    justify-content: space-between;

    padding: 0 32px;
}


.nav-title {
    font-size: 18px;
    font-weight: 600;
}


.navbar nav {
    display: flex;
    align-items: center;
    gap: 20px;
}


.navbar a {
    color: white;
    text-decoration: none;
}


.container {
    max-width: 1200px;

    margin: 32px auto;

    padding: 0 20px;
}


.card {
    background: white;

    border: 1px solid #ddd;

    border-radius: 8px;

    padding: 24px;

    margin-bottom: 20px;

    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04);
}


.page-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 24px;
}


.page-header h1 {
    margin-bottom: 4px;
}


.muted {
    color: #6b7280;
}


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


label {
    display: block;

    font-weight: 600;

    margin-bottom: 8px;
}


input[type="text"],
input[type="password"],
select {
    width: 100%;

    max-width: 600px;

    padding: 11px 12px;

    border: 1px solid #cbd5e1;

    border-radius: 6px;

    font-size: 15px;

    background: white;
}


input[type="file"] {
    display: block;

    margin-top: 8px;
}


.file-name {
    margin-top: 8px;

    color: #374151;

    font-size: 14px;
}


button,
.button {
    display: inline-block;

    border: none;

    border-radius: 6px;

    padding: 10px 16px;

    font-size: 14px;

    cursor: pointer;

    text-decoration: none;

    background: #e5e7eb;

    color: #111827;
}


button.primary,
.button.primary {
    background: #2563eb;

    color: white;
}


.form-actions {
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 30px;
}


table {
    width: 100%;

    border-collapse: collapse;
}


th,
td {
    padding: 12px;

    text-align: left;

    border-bottom: 1px solid #e5e7eb;
}


th {
    font-size: 13px;

    color: #6b7280;

    text-transform: uppercase;
}


.status {
    display: inline-block;

    padding: 4px 9px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 600;

    text-transform: capitalize;
}


.status-pending {
    background: #fef3c7;
    color: #92400e;
}


.status-processing {
    background: #dbeafe;
    color: #1e40af;
}


.status-completed {
    background: #dcfce7;
    color: #166534;
}


.status-failed {
    background: #fee2e2;
    color: #991b1b;
}


.status-expired {
    background: #e5e7eb;
    color: #4b5563;
}


.status-uploading {
    background: #f3e8ff;
    color: #6b21a8;
}


.error {
    background: #fee2e2;

    color: #991b1b;

    border-radius: 6px;

    padding: 12px;

    margin-bottom: 20px;
}


.info {
    background: #eff6ff;

    color: #1e40af;

    border-radius: 6px;

    padding: 14px;
}


.output-ready {
    display: flex;

    justify-content: space-between;

    align-items: center;
}


.details-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;
}


.details-grid > div {
    display: flex;

    flex-direction: column;

    gap: 5px;
}


.label {
    font-size: 12px;

    color: #6b7280;

    text-transform: uppercase;

    font-weight: 600;
}


.file-row {
    display: flex;

    justify-content: space-between;

    padding: 14px 0;

    border-bottom: 1px solid #eee;
}


.login-container {
    max-width: 400px;

    margin: 100px auto;
}


.inline-form {
    display: inline;
}


.link-button {
    background: none;

    color: white;

    padding: 0;

    border: none;

    cursor: pointer;

    font-size: inherit;
}


.empty {
    text-align: center;

    color: #6b7280;

    padding: 40px;
}


pre {
    white-space: pre-wrap;

    word-break: break-word;
}


@media (max-width: 700px) {

    .page-header {
        align-items: flex-start;

        gap: 20px;

        flex-direction: column;
    }


    .details-grid {
        grid-template-columns: 1fr;
    }


    .output-ready {
        align-items: flex-start;

        gap: 20px;

        flex-direction: column;
    }


    table {
        font-size: 13px;
    }

}
