:root {
  --bs-primary: #4c87ad;
  --bs-primary-rgb: 76, 135, 173;
  --bs-link-color: #3d779d;
  --bs-link-hover-color: #285d7d;
  --bs-body-color: #273642;
  --bs-body-bg: #f3f6f9;
  --rdv-ink: #263746;
  --rdv-muted: #687987;
  --rdv-border: #e1e8ee;
  --rdv-blue: #4c87ad;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(76, 135, 173, 0.1), transparent 34rem),
    #f3f6f9;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

.site-navbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--rdv-border);
  box-shadow: 0 4px 18px rgba(32, 54, 72, 0.045);
  backdrop-filter: blur(14px);
}

.site-navbar-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-width: max-content;
  color: var(--rdv-ink);
  text-decoration: none;
}

.site-brand-logo {
  display: block;
  width: 184px;
  height: 62px;
  object-fit: contain;
}

.site-brand-divider {
  width: 1px;
  height: 38px;
  background: #d7e0e7;
}

.site-brand-name {
  color: var(--rdv-ink);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.site-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.site-nav-actions form {
  margin: 0;
}

.page-content {
  min-height: calc(100vh - 86px);
  color: var(--rdv-ink);
}

.page-content > h1,
.page-content > div > h1 {
  color: var(--rdv-ink);
  font-weight: 750;
  letter-spacing: -0.035em;
}

.text-secondary {
  color: var(--rdv-muted) !important;
}

.card,
.form-panel {
  width: 100%;
  border: 1px solid var(--rdv-border);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(34, 57, 75, 0.055);
}

.card {
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #c9dbe7;
  box-shadow: 0 14px 34px rgba(34, 57, 75, 0.1);
}

.form-panel {
  padding: 1.75rem;
}

.form-panel-narrow {
  max-width: 42rem;
  margin-inline: auto;
}

.form-panel h2,
.card h2 {
  color: var(--rdv-ink);
  font-weight: 700;
}

.form-label {
  color: #344957;
  font-weight: 600;
}

.form-control,
.form-select,
.input-group-text {
  min-height: 44px;
  border-color: #d8e2e9;
  border-radius: 0.65rem;
}

.input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group .input-group-text {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.form-control:focus,
.form-select:focus {
  border-color: #75a8c6;
  box-shadow: 0 0 0 0.22rem rgba(76, 135, 173, 0.16);
}

.btn {
  border-radius: 0.65rem;
  font-weight: 600;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  --bs-btn-bg: #4c87ad;
  --bs-btn-border-color: #4c87ad;
  --bs-btn-hover-bg: #3e779d;
  --bs-btn-hover-border-color: #3e779d;
  --bs-btn-active-bg: #356a8d;
  --bs-btn-active-border-color: #356a8d;
  --bs-btn-color: #fff;
  box-shadow: 0 5px 12px rgba(76, 135, 173, 0.18);
}

.btn-outline-primary {
  --bs-btn-color: #3d779d;
  --bs-btn-border-color: #b6ccda;
  --bs-btn-hover-bg: #eaf3f8;
  --bs-btn-hover-border-color: #8eb3ca;
  --bs-btn-hover-color: #285d7d;
  --bs-btn-active-bg: #dcebf3;
  --bs-btn-active-border-color: #8eb3ca;
  --bs-btn-active-color: #285d7d;
}

.dropdown-menu {
  border: 1px solid var(--rdv-border);
  border-radius: 0.8rem;
  box-shadow: 0 12px 30px rgba(34, 57, 75, 0.12);
  padding: 0.45rem;
}

.dropdown-item {
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: #f7f9fb;
}

.table thead th {
  color: #536978;
  background: #f1f5f8;
  border-bottom-color: #dfe7ed;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table tbody td {
  color: #344957;
  border-color: #edf1f4;
  vertical-align: middle;
}

.alert {
  border: 1px solid transparent;
  border-radius: 0.85rem;
}

.form-text {
  color: var(--rdv-muted);
}

@media (max-width: 767.98px) {
  .site-navbar-inner {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding-block: 0.7rem;
  }

  .site-brand {
    gap: 0.7rem;
  }

  .site-brand-logo {
    width: 148px;
    height: 50px;
  }

  .site-brand-divider {
    height: 30px;
  }

  .site-nav-actions {
    justify-content: flex-start;
  }

  .site-nav-actions .btn {
    flex: 1 1 auto;
  }

  .form-panel {
    padding: 1.25rem;
  }
}

@media (max-width: 420px) {
  .site-brand-name {
    font-size: 0.88rem;
  }

  .site-nav-actions .btn {
    font-size: 0.75rem;
    padding-inline: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
