body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    background-color: #f8fafc;
}
.container {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}
h1, h2, h3 {
    color: #0f172a;
    margin-top: 0;
}
h1 {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
    font-size: 28px;
}
.grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 30px;
}
@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }
}
.form-group {
    margin-bottom: 20px;
}
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
}
input[type="text"], input[type="file"], textarea, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    background-color: #fff;
    transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #4f46e5;
}
textarea {
    height: 150px;
    resize: vertical;
}
.btn {
    background-color: #4f46e5;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s;
}
.btn:hover {
    background-color: #4338ca;
}
.btn:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
}
.btn-download {
    background-color: #10b981;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}
.btn-download:hover {
    background-color: #059669;
}
.alert {
    padding: 15px;
    margin-bottom: 22px;
    border-radius: 6px;
    font-size: 14px;
}
.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}
.card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}
#progress_area {
    display: none;
    background-color: #0f172a;
    color: #f8fafc;
    padding: 20px;
    border-radius: 6px;
    margin-top: 25px;
}
.progress-bar-container {
    background-color: #334155;
    border-radius: 4px;
    height: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    margin-top: 10px;
}
.progress-bar {
    background-color: #38bdf8;
    height: 100%;
    width: 0%;
    transition: width 0.3s;
}
.log-console {
    background-color: #020617;
    border: 1px solid #1e293b;
    padding: 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    color: #38bdf8;
    height: 200px;
    overflow-y: auto;
}
.console-entry {
    margin-bottom: 4px;
}
.result-box {
    background-color: #0f172a;
    color: #38bdf8;
    padding: 20px;
    border-radius: 6px;
    margin-top: 25px;
    white-space: pre-wrap;
    max-height: 450px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 13px;
}
.log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 15px;
}
.log-table th, .log-table td {
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    text-align: left;
}
.log-table th {
    background-color: #f8fafc;
    font-weight: 600;
}
.status-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}
.status-SUCCESS { background-color: #d1fae5; color: #065f46; }
.status-ERROR { background-color: #fee2e2; color: #991b1b; }
.status-PROCESSING { background-color: #fef3c7; color: #d97706; }
.status-PENDING { background-color: #e2e8f0; color: #475569; }

.navbar {
    background-color: #1e293b;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar a {
    color: #f8fafc;
    text-decoration: none;
    font-weight: 600;
    margin-right: 20px;
    font-size: 14px;
}
.navbar a:hover {
    color: #38bdf8;
}
.navbar .active {
    color: #38bdf8;
    border-bottom: 2px solid #38bdf8;
    padding-bottom: 4px;
}
