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: 70px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  color: #1f3f60;
  line-height: 1.55;
}

.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;
}

a {
  color: #2d5f96;
}

a:hover {
  color: #1e4b79;
}

.app-navbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid #d7e2ef;
  box-shadow: 0 6px 18px rgba(41, 74, 109, 0.08);
  backdrop-filter: blur(6px);
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(45, 95, 150, 0.25);
}

.brand-title {
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: #224a76;
}

.app-nav-link {
  color: #234f7d !important;
  font-weight: 500;
}

.app-nav-link:hover {
  color: #1e4b79 !important;
}

.app-content {
  min-height: calc(100vh - 170px);
}

.hero-panel {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #d7e2ef;
  border-radius: 24px;
  padding: 2.5rem 1.5rem;
  box-shadow: 0 10px 26px rgba(41, 74, 109, 0.09);
}

.hero-panel .lead {
  color: #2b4a6a;
}

.hero-logo {
  width: min(460px, 100%);
  max-height: 340px;
  object-fit: contain;
}

.btn-primary {
  background-color: #2b588b;
  border-color: #2b588b;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #1f4770;
  border-color: #1f4770;
}

.btn-outline-primary {
  color: #2b588b;
  border-color: #2b588b;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: #2b588b;
  border-color: #2b588b;
}

.feature-card {
  background: #ffffff;
  border: 1px solid #d7e2ef;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 6px 14px rgba(41, 74, 109, 0.06);
}

.feature-card h2 {
  color: #234f7d;
}

.app-footer {
  background: rgba(255, 255, 255, 0.8);
  border-top: 1px solid #d7e2ef;
  padding: 0.9rem 0;
}

.content-panel {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #d7e2ef;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 26px rgba(41, 74, 109, 0.09);
}

.app-danger {
  color: #8b3c4f;
}

/* Make default Identity/RCL forms visually match app theme */
main .card,
main .card-header,
main .card-body,
main .list-group-item {
  border-color: #d7e2ef !important;
}

main .card {
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(41, 74, 109, 0.08);
}

main .card-header {
  background: #f3f8ff;
  color: #2a5a8d;
  font-weight: 600;
}

main .bg-white {
  background-color: rgba(255, 255, 255, 0.9) !important;
}

main .text-dark {
  color: #294a6d !important;
}

main h1,
main h2,
main h3,
main h4,
main h5 {
  color: #234f7d;
}

main .form-control,
main .form-select {
  border: 1px solid #c8d7e8;
  border-radius: 12px;
}

main .form-control:focus,
main .form-select:focus {
  border-color: #7fa4cc;
  box-shadow: 0 0 0 0.2rem rgba(45, 95, 150, 0.15);
}

main .btn-secondary {
  background-color: #6a84a3;
  border-color: #6a84a3;
}

main .btn-secondary:hover,
main .btn-secondary:focus {
  background-color: #556f8d;
  border-color: #556f8d;
}

main .list-group-item.active {
  background-color: #2d5f96;
  border-color: #2d5f96;
}

.one-line-truncate {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.activity-description {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid #d7e2ef;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  white-space: pre-wrap;
}

.status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.status-pill--default {
  background: #e3ebf5;
  color: #26496e;
}

.status-pill--green {
  background: #d7f1dd;
  color: #1d6f33;
}

.status-pill--yellow {
  background: #fff4cc;
  color: #7f6200;
}

.status-pill--red {
  background: #ffd8d8;
  color: #8f2d2d;
}

.status-pill--blue {
  background: #d6e9ff;
  color: #1f4f82;
}

.print-only {
  display: none;
}

@media print {
  body {
    background: #fff !important;
    margin-bottom: 0;
  }

  .app-navbar,
  .app-footer,
  .no-print {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }

  .content-panel {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    padding: 0;
  }

  .table {
    font-size: 12px;
  }
}