body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
  background: #f4f7fb;
  color: #1f2937;
}

.nav {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  background: white;
  border-bottom: 1px solid #e5e7eb;
}

.nav a {
  text-decoration: none;
  color: #374151;
  padding: 8px 12px;
  border-radius: 8px;
}

.nav a.active {
  background: #2563eb;
  color: white;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  margin-bottom: 18px;
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.row > a {
  text-decoration: none;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  box-sizing: border-box;
}

input::placeholder {
  color: #9ca3af;
  opacity: 1;
}

button {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  width: auto;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
  filter: brightness(1.03);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.22);
  filter: brightness(0.97);
}

button:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.25);
  outline-offset: 2px;
}

button.secondary {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  box-shadow: 0 4px 12px rgba(71, 85, 105, 0.2);
}

button.secondary:hover {
  box-shadow: 0 8px 18px rgba(71, 85, 105, 0.24);
}

button.secondary:active {
  box-shadow: 0 3px 8px rgba(71, 85, 105, 0.22);
}

button.rect {
  border-radius: 4px;
}

.pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

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

.warning {
  background: #fef3c7;
  color: #92400e;
}

.muted {
  color: #6b7280;
  font-size: 13px;
}

pre {
  white-space: pre-wrap;
  background: #111827;
  color: #e5e7eb;
  padding: 12px;
  border-radius: 12px;
  overflow: auto;
}

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

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

th {
  background: #f8fafc;
  font-weight: 700;
}

.status-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-latest {
  background: #dcfce7;
  color: #166534;
}

.status-modified {
  background: #fde68a;
  color: #92400e;
}

.status-new {
  background: #bfdbfe;
  color: #1d4ed8;
}

.status-unknown {
  background: #e2e8f0;
  color: #475569;
}

#projectListPagination {
  margin-top: 16px;
  text-align: center;
  display: none;
}

#projectListPagination .row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

#pageSlider {
  width: 200px;
  cursor: pointer;
}

pre#logContent,
pre#logBox {
  background: #f8fafc;
  color: #111827;
  border: 1px solid #e5e7eb;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  max-height: 500px;
  overflow-y: auto;
}

.backend-offline-placeholder {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(248, 250, 252, 0.96);
  pointer-events: auto;
}

.backend-offline-placeholder.visible {
  display: flex;
}

.backend-offline-card {
  width: min(520px, 100%);
  padding: 32px 28px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
  text-align: center;
  color: #111827;
}

.backend-offline-icon {
  font-size: 46px;
  margin-bottom: 10px;
}

.backend-offline-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #111827;
}

.backend-offline-card p {
  margin: 0 0 16px;
  color: #4b5563;
  line-height: 1.6;
}

.backend-offline-contact {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a2c00;
  line-height: 1.7;
  font-weight: 600;
}
