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%;
}

:root {
  --brand-primary: #0d47a1;
  --brand-primary-dark: #082f6b;
  --brand-accent: #1976d2;
}

body {
  margin-bottom: 60px;
  background-color: #f4f6f9;
}

.app-navbar {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  box-shadow: 0 2px 10px rgba(13, 71, 161, 0.25);
}

/* ---------- Login page ---------- */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 60%, #42a5f5 100%);
  margin-bottom: 0;
}

.login-card {
  width: 100%;
  max-width: 420px;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.login-card .card-header {
  background: var(--brand-primary);
  color: #fff;
  text-align: center;
  padding: 2rem 1.5rem 1.5rem;
  border: none;
}

.login-card .card-header i {
  font-size: 2.5rem;
}

.login-card .card-body {
  padding: 2rem;
}

/* ---------- Dashboard ---------- */
.hero-search-card {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  border-radius: 1rem;
  color: #fff;
  padding: 3rem 2rem;
  box-shadow: 0 0.5rem 2rem rgba(13, 71, 161, 0.2);
}

.hero-search-card .form-control {
  border-radius: 0.5rem 0 0 0.5rem;
  border: none;
  height: 3.25rem;
  font-size: 1.1rem;
}

.hero-search-card .btn-find {
  border-radius: 0 0.5rem 0.5rem 0;
  height: 3.25rem;
  padding: 0 2rem;
  font-weight: 600;
  background-color: #fff;
  color: var(--brand-primary);
  border: none;
}

.hero-search-card .btn-find:hover {
  background-color: #eef4ff;
}

.stat-card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.06);
}

.status-badge-Queued { background-color: #6c757d; }
.status-badge-Running { background-color: #0d6efd; }
.status-badge-Completed { background-color: #198754; }
.status-badge-Failed { background-color: #dc3545; }

.continuity-badge-child,
.continuity-badge-parent {
  color: #ffffff !important;
  font-weight: 600;
}

.continuity-badge-child {
  background-color: #0d6efd !important;
}

.continuity-badge-parent {
  background-color: #6c757d !important;
}

.badge-changed {
  background-color: #dc3545 !important;
  color: #ffffff !important;
  font-weight: 600;
}

.version-card .field-value {
  display: block;
}

.version-card .field-value.changed {
  background-color: #fff3cd;
  border: 1px solid #ffe69c;
  border-radius: 4px;
  padding: 2px 6px;
  font-weight: 600;
}

.version-card .card-header.current {
  background-color: #d1e7ff;
}

.table-hover tbody tr:hover {
  background-color: #eef4ff;
  cursor: pointer;
}

.sortable-header {
  cursor: pointer;
  user-select: none;
}

.sortable-header:hover {
  color: var(--brand-accent);
}

.progress-card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.08);
}

.spin-icon {
  animation: spin 1.4s linear infinite;
  display: inline-block;
}

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