/* Base reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6f9;
  color: #111;
}

/* Center layout (login page) */
.center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Card container */
.card {
  background: #ffffff;
  padding: 28px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  width: 100%;
  max-width: 420px;
}

/* Headings */
h1 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 20px;
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

label {
  font-size: 14px;
  font-weight: 600;
}

input {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
}

input:focus {
  outline: none;
  border-color: #4f46e5;
}

/* Button */
button {
  margin-top: 8px;
  padding: 10px;
  font-size: 14px;
  background: #4f46e5;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: #4338ca;
}

/* Error text */
.error {
  margin-top: 8px;
  font-size: 13px;
  color: #dc2626;
}

/* Header */
.header {
  background: #111827;
  color: white;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h2 {
  margin: 0;
  font-size: 18px;
}

.btn-secondary {
  background: transparent;
  border: 1px solid #ffffff55;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #ffffff22;
}

/* Main container */
.container {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

/* Dashboard cards */
.container .card {
  margin-bottom: 24px;
}

/* Muted text */
.muted {
  color: #6b7280;
  font-size: 13px;
}

/* Table */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 14px;
}

.table th,
.table td {
  padding: 10px;
  border-top: 1px solid #e5e7eb;
  text-align: left;
}

.table th {
  font-weight: 600;
  background: #f9fafb;
}

.status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.status-queued {
  background: #fff7ed;
  color: #9a3412;
}

.status-running {
  background: #eff6ff;
  color: #1d4ed8;
}

.status-processing {
  background: #eff6ff;
  color: #1d4ed8;
}

.status-done {
  background: #ecfdf5;
  color: #065f46;
}

.status-failed,
.status-error {
  background: #fef2f2;
  color: #991b1b;
}

.banner {
  max-width: 1000px;
  margin: 14px auto 0 auto;
  padding: 10px 14px;
  border-radius: 6px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  font-size: 14px;
}
