* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #222;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.container.wide {
    max-width: 1600px;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

h1 { margin: 0 0 10px; }

.muted {
    color: #666;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

textarea {
    width: 100%;
    min-height: 220px;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    padding: 14px;
    resize: vertical;
    outline: none;
}

.actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

button, .btn {
    border: none;
    background: #2563eb;
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn.secondary { background: #64748b; }
.btn.danger { background: #dc2626; }
.btn.small { padding: 8px 12px; font-size: 12px; }

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}

.note {
    margin-top: 18px;
    padding: 12px 14px;
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    color: #1e3a8a;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1300px;
}

th, td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

th {
    background: #f8fafc;
}

.center { text-align: center; }

.url-cell {
    max-width: 360px;
    word-break: break-all;
}

.badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge.pending { background: #fef3c7; color: #92400e; }
.badge.processing { background: #dbeafe; color: #1d4ed8; }
.badge.completed { background: #dcfce7; color: #166534; }
.badge.failed { background: #fee2e2; color: #991b1b; }

.progress {
    width: 140px;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #e5e7eb;
    margin-bottom: 6px;
}

.progress-bar {
    height: 100%;
    background: #2563eb;
}

.log-box {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    margin-top: 12px;
    font-family: monospace;
    font-size: 13px;
    white-space: pre-wrap;
}