* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
    line-height: 1.6;
}

a {
    color: #6c5ce7;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #333;
    margin-bottom: 30px;
}

header h1 {
    font-size: 1.4rem;
    color: #6c5ce7;
}

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

nav a {
    color: #eee;
}

.card {
    background: #16213e;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
}

.card h2 {
    margin-bottom: 20px;
    color: #eee;
    font-size: 1.2rem;
}

.card h3 {
    margin-bottom: 15px;
    color: #ccc;
    font-size: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
}

input[type="url"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 6px;
    background: #0f0f23;
    color: #eee;
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: #6c5ce7;
}

button {
    padding: 12px 30px;
    background: #6c5ce7;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #5a4bd1;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #6c5ce7;
    color: white;
    border-radius: 6px;
    text-decoration: none;
}

.btn:hover {
    background: #5a4bd1;
    text-decoration: none;
}

.btn-link {
    background: none;
    color: #6c5ce7;
    padding: 0;
    border: none;
    cursor: pointer;
    font-size: inherit;
}

.btn-link:hover {
    text-decoration: underline;
}

.error {
    color: #e74c3c;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 6px;
}

.error-card {
    border-left: 4px solid #e74c3c;
}

.job-info p {
    margin-bottom: 10px;
}

.job-info strong {
    color: #aaa;
    display: inline-block;
    width: 100px;
}

.status-pending {
    color: #f39c12;
}

.status-processing {
    color: #3498db;
}

.status-done {
    color: #2ecc71;
}

.status-failed {
    color: #e74c3c;
}

.logs {
    background: #0f0f23;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    font-family: "Courier New", monospace;
    font-size: 0.85rem;
    max-height: 400px;
    overflow-y: auto;
}

.job-list {
    list-style: none;
}

.job-list li {
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.job-list li:last-child {
    border-bottom: none;
}

.url-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-table {
    width: 100%;
    border-collapse: collapse;
}

.job-table th,
.job-table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #333;
}

.job-table th {
    color: #aaa;
    font-weight: normal;
}

.job-table tr:hover {
    background: rgba(108, 92, 231, 0.1);
}

.dim {
    color: #666;
}

.actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

pre.error-text {
    background: rgba(231, 76, 60, 0.1);
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    color: #e74c3c;
}

#message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
}

#message.error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}