:root {
  --app-sidebar-width: 16rem;
  --app-sidebar-bg: #1b3a5c;
  --app-accent: #185fa5;
  --app-surface: #f4f6f8;
}

html {
  font-size: 15px;
}

body {
  background-color: var(--app-surface);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(24, 95, 165, 0.2);
}

.btn-primary {
  --bs-btn-bg: var(--app-accent);
  --bs-btn-border-color: var(--app-accent);
  --bs-btn-hover-bg: #154d86;
  --bs-btn-hover-border-color: #154d86;
  --bs-btn-active-bg: #154d86;
  --bs-btn-active-border-color: #154d86;
}

.text-accent {
  color: var(--app-accent) !important;
}

.app-shell {
  min-height: 100vh;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--app-sidebar-width);
  background-color: var(--app-sidebar-bg);
  overflow-y: auto;
  z-index: 1030;
}

.app-main {
  margin-left: var(--app-sidebar-width);
  min-height: 100vh;
}

.app-nav .nav-link {
  color: rgba(255, 255, 255, 0.78);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-weight: 500;
}

.app-nav .nav-link:hover,
.app-nav .nav-link.active {
  background-color: var(--app-accent);
  color: #fff;
}

.page-header {
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.surface-card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 0.125rem 0.5rem rgba(17, 24, 39, 0.08);
}

.stat-card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 0.125rem 0.5rem rgba(17, 24, 39, 0.08);
}

.group-search-results {
  max-height: 18rem;
  overflow-y: auto;
}

.group-search-results .list-group-item {
  border-left: 0;
  border-right: 0;
}

.selected-group-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(24, 95, 165, 0.1);
  color: var(--app-accent);
  border: 1px solid rgba(24, 95, 165, 0.15);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 500;
}

.selected-group-remove {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
}

.campaign-action-bar {
  position: sticky;
  bottom: 0;
  z-index: 1020;
}

.confirm-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.confirm-container {
  width: 100%;
  max-width: 30rem;
}

@media (max-width: 991.98px) {
  .app-sidebar {
    position: static;
    width: 100%;
  }

  .app-main {
    margin-left: 0;
  }
}