html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.10), transparent 32rem),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
  color: #172033;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.app-navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.app-navbar .nav-link {
  color: #526071;
  border-radius: 999px;
  padding-inline: 0.9rem;
}

.app-navbar .nav-link.active,
.app-navbar .nav-link:hover {
  background: #edf4ff;
  color: #0d6efd;
}

.page-hero {
  background: linear-gradient(135deg, #132238 0%, #264d7e 100%);
  border-radius: 1.5rem;
  color: #fff;
  padding: 2rem;
  box-shadow: 0 1rem 2rem rgba(15, 35, 65, 0.16);
}

.page-hero .text-muted {
  color: rgba(255, 255, 255, 0.74) !important;
}

.soft-card {
  border: 0;
  border-radius: 1.25rem;
  box-shadow: 0 0.75rem 1.75rem rgba(22, 34, 51, 0.08);
}

.metric-card {
  border: 0;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0.5rem 1.5rem rgba(22, 34, 51, 0.07);
}

.metric-label {
  color: #6c7888;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.metric-value {
  color: #172033;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.status-badge {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
}

.status-active {
  background: #e7f4ff;
  color: #0b5ed7;
}

.status-paused {
  background: #fff3cd;
  color: #946200;
}

.status-completed {
  background: #d1e7dd;
  color: #0f5132;
}

.status-failed {
  background: #f8d7da;
  color: #842029;
}

.schedule-row {
  border: 0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.45rem 1.2rem rgba(22, 34, 51, 0.06);
}

.schedule-row + .schedule-row {
  margin-top: 0.85rem;
}

.step-card {
  border: 1px solid #e8edf5;
  border-radius: 1.15rem;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #0d6efd;
  color: #fff;
  font-weight: 700;
}

.topic-counter {
  color: #6c7888;
  font-size: 0.9rem;
}

.topic-timeline {
  position: relative;
}

.topic-item {
  border: 1px solid #edf1f7;
  border-radius: 1rem;
  background: #fff;
  padding: 1rem;
}

.topic-item + .topic-item {
  margin-top: 0.75rem;
}

.topic-dot {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: #adb5bd;
}

.topic-dot.pending {
  background: #adb5bd;
}

.topic-dot.in-progress {
  background: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.18);
}

.topic-dot.completed {
  background: #198754;
}

.topic-dot.failed {
  background: #dc3545;
}

.empty-state {
  border: 1px dashed #b9c7d8;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  padding: 2rem;
  text-align: center;
}