:root {
  --app-primary: #2563eb;
  --app-primary-dark: #1d4ed8;
  --app-ink: #172033;
  --app-muted: #667085;
  --app-border: #e4e7ec;
  --app-surface: #ffffff;
  --app-background: #f3f6fa;
}

html {
  position: relative;
  min-height: 100%;
  font-size: 13px;
}

body {
  min-height: 100vh;
  margin-bottom: 48px;
  color: var(--app-ink);
  background: var(--app-background);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.2);
}

/* Main navigation */

.app-navbar {
  min-height: 60px;
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--app-border);
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.05);
}

.app-shell {
  width: calc(100% - 2rem);
  max-width: 1400px !important;
}

.app-navbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: 1rem;
  padding: 0;
  color: var(--app-ink);
  font-size: 1.18rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.app-navbar .navbar-brand:hover {
  color: var(--app-primary);
}

.brand-mark {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(37, 99, 235, 0.18));
}


.app-navbar .navbar-collapse {
  align-items: center;
  justify-content: flex-end;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: #f2f4f7;
  border: 1px solid var(--app-border);
  border-radius: 8px;
}

.language-option {
  min-width: 32px;
  padding: 0.42rem 0.65rem;
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.2;
  background: transparent;
  border: 0;
  border-radius: 6px;
  transition: color 150ms ease, background-color 150ms ease,
    box-shadow 150ms ease;
}

.language-option:hover {
  color: var(--app-ink);
}

.language-option.active {
  color: var(--app-primary-dark);
  background: var(--app-surface);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
}

/* Dashboard heading */

.app-content {
  padding-top: 2.25rem;
}

.dashboard-title {
  color: var(--app-ink);
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  font-weight: 760;
  letter-spacing: -0.035em;
}

.dashboard-subtitle {
  color: var(--app-muted);
  font-size: 1rem;
}

.refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 36px;
  padding-right: 1rem;
  padding-left: 1rem;
  font-weight: 650;
  border-radius: 7px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.16);
}

.refresh-button:hover {
  background-color: var(--app-primary-dark);
  border-color: var(--app-primary-dark);
}

.refresh-button svg {
  width: 15px;
  height: 15px;
}

.demo-status {
  border-width: 1px;
  border-radius: 10px;
}

.card {
  border-color: var(--app-border);
  border-radius: 10px;
}

/* Localized date filters */

.localized-date-picker {
  position: relative;
}

.localized-date-display {
  padding-right: 2.75rem;
  color: var(--app-ink);
  background-color: var(--app-surface);
  cursor: pointer;
}

.localized-date-display::placeholder {
  color: #6c757d;
  opacity: 1;
}

.localized-date-native {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.localized-date-icon {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  z-index: 1;
  width: 15px;
  height: 15px;
  color: #667085;
  pointer-events: none;
  transform: translateY(-50%);
}

.localized-date-picker:focus-within .localized-date-display {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.2);
}

.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;
}

@media (min-width: 768px) {
  html {
    font-size: 13px;
  }
}


@media (max-width: 767.98px) {
  .app-shell {
    width: calc(100% - 1.5rem);
  }

  .app-navbar {
    min-height: 58px;
  }

  .app-navbar .navbar-collapse {
    padding-top: 1rem;
  }

  .language-switcher {
    margin: 0 0 0.35rem auto;
  }

  .app-content {
    padding-top: 1.5rem;
  }

  .dashboard-heading {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .refresh-button {
    width: 100%;
  }
}
