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

a {
  color: #93c5fd;
  text-decoration: none;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #111827;
  border-bottom: 1px solid #1f2937;
}

.brand {
  font-weight: bold;
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.logout-form {
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.notice {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border: 1px solid transparent;
}

.notice-success {
  background: #052e16;
  color: #bbf7d0;
  border-color: #166534;
}

.notice-error {
  background: #3f0d12;
  color: #fecaca;
  border-color: #b91c1c;
}

.narrow {
  max-width: 420px;
}

.card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.big {
  font-size: 2rem;
  font-weight: bold;
}

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

th, td {
  padding: 0.5rem;
  border-bottom: 1px solid #1f2937;
  text-align: left;
  vertical-align: top;
}

input, select, button, textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0.25rem 0 0.75rem 0;
  padding: 0.5rem;
  border: 1px solid #374151;
  border-radius: 6px;
  background: #0b1220;
  color: #e2e8f0;
}

button {
  cursor: pointer;
  background: #1d4ed8;
  border: none;
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(90px, 1fr));
  gap: 0.4rem;
}

.actions form {
  margin: 0;
}

.actions button {
  margin: 0;
}

.error {
  color: #fecaca;
  margin: 0.25rem 0 0.75rem 0;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.filters-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.filters-actions a {
  font-size: 0.9rem;
}

.table-footer {
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pagination {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.pagination .disabled {
  color: #64748b;
}

.status-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}

.status-pending {
  background: #3f3f46;
  color: #e4e4e7;
}

.status-running {
  background: #1e3a8a;
  color: #dbeafe;
}

.status-done {
  background: #14532d;
  color: #bbf7d0;
}

.status-failed {
  background: #7f1d1d;
  color: #fecaca;
}

.status-cancelled {
  background: #3f3f46;
  color: #cbd5e1;
}

.progress {
  width: 140px;
  max-width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #1f2937;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  transition: width 0.2s ease;
}
