/* Tambahan khusus versi web; gaya dasar ada di static/styles.css. */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0;
}

.brand {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.topnav {
  display: flex;
  gap: 4px;
}

.topnav a {
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.topnav a:hover {
  background: var(--bg);
}

.topnav a[aria-current="page"] {
  background: #e7f3f0;
  color: var(--accent-dark);
  font-weight: 700;
}

.engine-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 0.85rem;
}

.engine-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d4a017;
}

.engine-status[data-state="ready"] .engine-dot {
  background: var(--accent);
}

.engine-status[data-state="error"] .engine-dot {
  background: #a63b32;
}

.shell {
  padding-top: 28px;
}

.upload-panel {
  margin-top: 0;
}

.info-box {
  padding: 12px 14px;
  border: 1px solid #c9e3dc;
  border-radius: 8px;
  background: #f2faf7;
}

.info-box p {
  margin-bottom: 6px;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.alert a,
.info-box a {
  color: inherit;
  font-weight: 700;
}

.alert.is-success {
  border-color: #c9e3dc;
  background: #f2faf7;
  color: var(--accent-dark);
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-heading h2 {
  margin: 0;
}

.review-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-item {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.review-item h3 {
  margin: 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.review-item .note {
  margin: 0;
}

.review-item .review-actions {
  margin-top: 0;
}

.progress-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.progress-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.field-grid {
  display: grid;
  gap: 8px;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"] {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #aeb8c5;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.checkbox-label input {
  width: auto;
}

.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.small-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(23, 32, 42, 0.45);
}

.busy-overlay[hidden] {
  display: none;
}

.busy-box {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: min(460px, 100%);
  padding: 28px;
  text-align: center;
}

.busy-box h2 {
  margin: 8px 0 0;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 4px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 3s;
  }
}

@media (max-width: 720px) {
  .engine-status {
    width: 100%;
    margin-left: 0;
  }

  .upload-panel {
    padding: 20px;
  }
}
