:root {
  color-scheme: dark;
}

body {
  background-color: #1E1E2F;
  color: #f8f9fa;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  min-height: 100vh;
}

.member-page {
  background:
    linear-gradient(180deg, rgba(4, 8, 21, 0.92) 0%, rgba(11, 31, 61, 0.94) 100%),
    radial-gradient(circle at top left, rgba(24, 183, 193, 0.08), transparent 40%),
    radial-gradient(circle at bottom right, rgba(255, 107, 107, 0.1), transparent 45%),
    url("https://leadsfind.me/backgrounds/Marketing/ChatGPT%20Image%20Sep%201%2C%202025%2C%2012_25_21%20PM.png")
      center / cover no-repeat fixed;
  color: #f6f8ff;
  background-attachment: fixed;
  background-size: cover;
  position: relative;
}

.member-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(7, 12, 29, 0.6);
  backdrop-filter: blur(2px);
  z-index: 0;
  pointer-events: none;
}

.member-page > * {
  position: relative;
  z-index: 1;
}

.member-page .card,
.member-page .modal-content,
.member-page .list-group-item,
.member-page .dropdown-menu {
  background-color: rgba(23, 30, 57, 0.85);
  color: #f6f8ff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.member-page .list-group-item {
  background-color: rgba(19, 26, 50, 0.85);
}

.member-page .table {
  color: #f6f8ff;
}

.member-page .table thead th {
  color: #e4ecff;
}

.member-page .text-muted {
  color: rgba(214, 225, 255, 0.7) !important;
}

.member-page .form-control,
.member-page .form-select,
.member-page .form-control:focus,
.member-page .form-select:focus {
  background-color: rgba(12, 18, 36, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f6f8ff;
}

.member-page .form-control::placeholder {
  color: rgba(214, 225, 255, 0.55);
}

.member-page .badge.bg-light,
.member-page .badge.text-bg-light,
.member-page .btn-light {
  color: #10131f !important;
}

.card,
.modal-content,
.list-group-item,
.dropdown-menu {
  border-radius: 0.75rem;
}
 
.card,
.modal-content,
.list-group-item,
.dropdown-menu {
  background-color: #2a2a3b;
  color: #f8f9fa;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-warning {
  background-color: #f7a531;
  color: #1E1E2F;
  border: none;
}

.btn-warning:hover,
.btn-warning:focus {
  background-color: #ffbb54;
  color: #1E1E2F;
}

.btn-bold {
  font-weight: 600;
}

.bg-dark,
nav.navbar {
  background-color: #1E1E2F !important;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: #ffffff;
}

.navbar-nav .nav-button {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  margin-right: 10px;
  padding: 8px 16px;
  color: #ffffff !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.navbar-nav .nav-button:hover,
.navbar-nav .nav-button:focus {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
  transform: translateY(-1px);
  text-decoration: none;
}

.member-page nav.navbar {
  position: relative;
  z-index: 4000;
}

.dropdown-menu {
  background-color: #1e1e2f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  --bs-dropdown-bg: #2a2a3b;
  --bs-dropdown-link-color: rgba(255, 255, 255, 0.85);
  --bs-dropdown-link-hover-color: #ffffff;
  --bs-dropdown-link-hover-bg: #73627c;
  --bs-dropdown-divider-bg: rgba(255, 255, 255, 0.1);
  --bs-dropdown-link-active-bg: #73627c;
  --bs-dropdown-link-active-color: #ffffff;
  z-index: 2000;
}

.dropdown-menu .dropdown-item {
  color: rgba(255, 255, 255, 0.85);
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background-color: #73627c;
  color: #ffffff;
}

.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
  background-color: #73627c;
  color: #ffffff;
}


.dashboard-page {
  color: #fff;
  font-family: "Segoe UI", sans-serif;
}

.dashboard-page .card {
  background-color: #2a2a44;
  border-radius: 1rem;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
  border: none;
}

.dashboard-page .dashboard-metric {
  background: #1c1c2e;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.dashboard-page .dashboard-metric .small {
  color: rgba(255, 255, 255, 0.6);
}

.dashboard-page .day-box {
  min-width: 110px;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  background-color: #1c1c2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-page .day-box:hover {
  transform: translateY(-4px);
  background-color: #2a2a44 !important;
}

.dashboard-page .rounded-pill {
  font-weight: 600;
}

.dashboard-page .progress {
  height: 20px;
  background-color: rgba(255, 255, 255, 0.1);
}

.dashboard-page .progress-bar {
  background: linear-gradient(90deg, #ff8c00, #ffcc00);
  background-size: 200% 200%;
  animation: dashboardProgressAnim 2s linear infinite;
}

@keyframes dashboardProgressAnim {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.dashboard-page .display-4 {
  font-weight: 700;
}

.dashboard-page .how-it-works {
  border-radius: 1rem;
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
  background-color: #1c1c2e;
}

.dashboard-page .how-it-works h5 {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.dashboard-page .glow-icon {
  display: inline-block;
  margin-right: 5px;
  filter: drop-shadow(0 0 4px #ffd700);
}

.dashboard-page .how-it-works ol li {
  margin-bottom: 0.5rem;
}

.dashboard-page .how-it-works strong {
  color: #ffd700;
}

/* Utility styles extracted from inline markup */
.overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 18, 0.85);
  z-index: 9999;
  backdrop-filter: blur(3px);
}

.overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.spinner-lg {
  width: 3rem !important;
  height: 3rem !important;
}

.text-gold {
  color: #ffd700 !important;
}

.text-soft-lilac {
  color: #b7b7ce !important;
}

.text-soft-dark {
  color: #333333 !important;
}

.preview-frame {
  width: 100%;
  height: 70vh;
  border: 0;
}

.refine-panel {
  margin: 10px 0;
}

.toolbar-gap {
  gap: 0.5rem;
}

.business-card {
  background-color: var(--business-card-bg, #1E1E2F);
}

.qr-preview {
  --qr-size: 180px;
}

.qr-preview[data-qr-size] {
  width: var(--qr-size);
  height: var(--qr-size);
}

.summary-badge {
  border-top: 6px solid var(--summary-accent, transparent);
}

.accent-badge {
  background-color: var(--badge-accent, #ffffff);
  color: #111827;
  font-weight: 600;
}

.dynamic-text {
  color: var(--text-color, inherit);
}

.splash-manager-page {
  color: #eee;
  font-family: 'Segoe UI', sans-serif;
}

@media (min-width: 992px) {
  .splash-manager-page .container {
    max-width: 980px;
  }
}

.splash-manager-page .card {
  border-radius: 16px;
  background: #1c1c29;
  color: #e9e9ee;
  border: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
}

.splash-manager-page label {
  font-weight: 600;
}

.splash-manager-page small.muted {
  color: #99aabb;
}

.splash-manager-page pre.code {
  background: #101018;
  color: #e5e6ff;
  border-radius: 12px;
  padding: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.splash-manager-page .copy {
  cursor: pointer;
}

.splash-manager-page .badge-soft {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.35);
}

.splash-manager-page .btn-primary {
  background: linear-gradient(90deg, #ff8c00, #ffcc00);
  border: 0;
  color: #111;
}

.splash-manager-page .btn-primary:disabled {
  opacity: 0.6;
}

.splash-manager-page .ai-reco-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 12px;
  padding: 14px;
  margin-top: 16px;
}

.splash-manager-page .ai-reco-block h6 {
  font-weight: 600;
  margin-bottom: 0;
}

.splash-manager-page .ai-reco-block ul {
  margin-bottom: 0;
  padding-left: 1.15rem;
}

.splash-manager-page .ai-reco-meta {
  color: #b7b7ce;
  font-size: 0.85rem;
}

.splash-manager-page .ai-reco-actions .btn {
  margin-left: 6px;
}

.splash-manager-page .modal-fullscreen,
.splash-manager-page .modal-fullscreen .modal-content {
  width: 100%;
  height: 100vh;
  margin: 0;
  max-width: none;
}

.splash-manager-page .modal-fullscreen .modal-body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 0;
}

.splash-manager-page .modal-fullscreen .CodeMirror {
  flex: 1 1 auto;
  height: 100% !important;
  font-size: 14px;
}

.splash-manager-page .CodeMirror,
.splash-manager-page .CodeMirror-code {
  padding-left: 0 !important;
}

.splash-manager-page .CodeMirror pre {
  padding-left: 40px !important;
}

.splash-manager-page .CodeMirror-gutters {
  background: #1a1a2e !important;
  border-right: 1px solid #444 !important;
}

.splash-manager-page .CodeMirror-linenumber {
  min-width: 2ch;
  text-align: right;
  padding: 0 6px;
  color: #888;
}

.splash-manager-page .muted {
  color: #94a3b8;
  font-size: 12px;
}

.splash-manager-page .pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid #1f2937;
}

.splash-manager-page .pill.ok {
  color: #0ee6b7;
  border-color: #065f46;
  background: #042f2e;
}

.splash-manager-page .pill.no {
  color: #ffb4a4;
  border-color: #7f1d1d;
  background: #2f0b0b;
}

.splash-manager-page .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.splash-manager-page .nowrap {
  white-space: nowrap;
}

.splash-manager-page .ref-input,
.splash-manager-page .note-input {
  width: 100%;
}

.splash-manager-page .note-input {
  min-height: 60px;
}

.splash-manager-page .btn-group.flex-wrap > .btn {
  flex: 0 0 auto;
}

.ads-manager-page {
  background: #111;
  color: #eee;
  font-family: 'Segoe UI', sans-serif;
}

@media (min-width: 992px) {
  .ads-manager-page .container {
    max-width: 980px;
  }
}

.ads-manager-page .card {
  border-radius: 16px;
  background: #1c1c29;
  color: #e9e9ee;
  border: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
}

.ads-manager-page label {
  font-weight: 600;
}

.ads-manager-page small.muted {
  color: #99aabb;
}

.ads-manager-page pre.code {
  background: #101018;
  color: #e5e6ff;
  border-radius: 12px;
  padding: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

.ads-manager-page .badge-soft {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.35);
}

.ads-manager-page .btn-primary {
  background: linear-gradient(90deg, #ff8c00, #ffcc00);
  border: 0;
  color: #111;
}

.ads-manager-page .btn-primary:disabled {
  opacity: 0.6;
}

.ads-manager-page .ai-reco-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 12px;
  padding: 14px;
  margin-top: 18px;
}

.ads-manager-page .ai-reco-block h6 {
  font-weight: 600;
  margin-bottom: 0;
}

.ads-manager-page .ai-reco-block ul {
  margin-bottom: 0;
  padding-left: 1.15rem;
}

.ads-manager-page .ai-reco-meta {
  color: #b7b7ce;
  font-size: 0.85rem;
}

.ads-manager-page .ai-reco-actions .btn {
  margin-left: 6px;
}

.ads-manager-page .modal-dialog-scrollable .modal-body {
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

@media (max-width: 576px) {
  .ads-manager-page .modal-dialog-scrollable .modal-body {
    max-height: calc(100vh - 140px);
  }

  .ads-manager-page pre.code {
    font-size: 0.875rem;
    padding: 10px;
  }
}

.ai-ads-page {
  background: linear-gradient(135deg, #0d0d0d, #1a1a2e);
  color: #eee;
  font-family: 'Segoe UI', sans-serif;
}

.ai-ads-page .container {
  max-width: 980px;
}

.ai-ads-page .card {
  border-radius: 16px;
  background: #1c1c29;
  color: #e9e9ee;
  border: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
}

.ai-ads-page label {
  font-weight: 600;
}

.ai-ads-page small.muted {
  color: #99aabb;
}

.ai-ads-page pre.code {
  background: #101018;
  color: #e5e6ff;
  border-radius: 12px;
  padding: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.ai-ads-page .copy {
  cursor: pointer;
}

.ai-ads-page .badge-soft {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.35);
}

.ai-ads-page .btn-primary {
  background: linear-gradient(90deg, #ff8c00, #ffcc00);
  border: 0;
  color: #111;
}

.ai-ads-page .btn-primary:disabled {
  opacity: 0.6;
}

.copy-highlight {
  box-shadow: 0 0 0 3px #ffd700 !important;
}

.backgrounds-page .bg-item {
  display: inline-block;
  margin: 10px;
  text-align: center;
}

.backgrounds-page .bg-item img {
  max-width: 200px;
  height: auto;
  display: block;
  border: 1px solid #ccc;
  margin-bottom: 5px;
}

.backgrounds-page .bg-item .input-group,
.backgrounds-page .bg-item input {
  width: 200px;
}

.backgrounds-page .bg-item input {
  text-align: center;
}

.schedule-planner-page {
  color: #f3f4f6;
  font-family: 'Inter', sans-serif;
}

.schedule-planner-page h1,
.schedule-planner-page h2,
.schedule-planner-page h3 {
  font-weight: 700;
  color: #ffffff;
}

.scheduler-container {
  max-width: 1200px;
  margin: 0 auto 80px;
}

.page-intro {
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.3), rgba(236, 72, 153, 0.2));
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.45);
}

.calendar-card {
  background: rgba(17, 24, 39, 0.85);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(8, 15, 40, 0.35);
  margin-bottom: 24px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.calendar-day {
  background: rgba(31, 41, 55, 0.7);
  border-radius: 14px;
  padding: 16px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.calendar-day.today {
  border: 2px solid rgba(96, 165, 250, 0.8);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.25);
}

.calendar-day .day-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 600;
}

.event-chip {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  border-left: 5px solid var(--accent-color, #6366f1);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.35);
}

.event-chip strong {
  display: block;
  color: #f9fafb;
}

.event-chip small {
  display: block;
  margin-top: 4px;
  color: #cbd5f5;
  font-size: 12px;
}

.event-chip .focus-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
}

.itinerary-list {
  list-style: none;
  padding-left: 0;
}

.itinerary-item {
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.88);
  border-left: 6px solid var(--accent-color, #6366f1);
  box-shadow: 0 15px 32px rgba(15, 23, 42, 0.35);
}

.schedule-planner-page .form-control,
.schedule-planner-page .custom-select {
  background-color: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #f9fafb;
}

.schedule-planner-page .form-control:focus,
.schedule-planner-page .custom-select:focus {
  border-color: rgba(59, 130, 246, 0.9);
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.schedule-planner-page label {
  font-weight: 600;
}

.btn-gradient {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 12px;
  box-shadow: 0 18px 32px rgba(79, 70, 229, 0.35);
}

.btn-gradient:hover {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
}

.preferences-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.summary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.summary-badge {
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  flex-direction: column;
  min-width: 160px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.3);
}

.summary-badge span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.75);
}

.summary-badge strong {
  font-size: 24px;
  color: #f9fafb;
}

.upcoming-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.upcoming-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.upcoming-item:last-child {
  border-bottom: none;
}

.nav-week {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.nav-week a {
  color: #93c5fd;
  font-weight: 600;
}

.alert-custom {
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: #dbeafe;
  border-radius: 12px;
  padding: 16px 22px;
  margin-bottom: 18px;
}

.alert-custom.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fee2e2;
}

.encouragement {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.82);
}

@media (max-width: 768px) {
  .calendar-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.fs-14 {
  font-size: 14px;
}

.fs-12 {
  font-size: 12px;
}

.text-soft-blue {
  color: rgba(226, 232, 240, 0.85) !important;
}

.text-soft-accent {
  color: rgba(147, 197, 253, 0.9) !important;
}

.min-w-140 {
  min-width: 140px;
}

.blueprint-header-link {
  margin-top: 10px;
  display: inline-block;
}

.blueprint-table .col-name { width: 24%; }
.blueprint-table .col-url { width: 18%; }
.blueprint-table .col-report { width: 8%; }
.blueprint-table .col-ref { width: 20%; }
.blueprint-table .col-joined { width: 10%; }
.blueprint-table .col-favorite { width: 10%; }
.blueprint-table .col-note { width: 20%; }

.blueprint-auto-msg {
  font-size: 12px;
}

.text-teal {
  color: #0ee6b7 !important;
}

.text-soft-error {
  color: #ffb4a4 !important;
}

.business-card {
  border: none;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background-color: var(--business-card-bg, #1E1E2F);
}

.business-card .qr-preview {
  width: var(--qr-size, 160px);
  min-width: var(--qr-size, 160px);
  height: var(--qr-size, 160px);
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.business-card .qr-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.business-card:hover .qr-preview {
  transform: translateY(-4px);
}

.qr-shape-rounded img {
  border-radius: 25px;
}

.qr-shape-circle img {
  border-radius: 50%;
}

.form-section-title {
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
}

.share-input {
  background-color: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #f8fafc;
}

.user-agents-page {
  color: #e5e7eb;
}

.user-agents-page .card {
  background: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.4);
}

.user-agents-page .card h5 {
  color: #fcd34d;
}

.badge-status {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.badge-status.active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.badge-status.paused {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

.user-agents-page .table thead th {
  border-top: none;
  color: #9ca3af;
}

.user-agents-page .table tbody tr {
  border-color: rgba(255, 255, 255, 0.05);
}

.user-agents-page label {
  font-weight: 600;
  color: #f9fafb;
}

.user-agents-page .form-control,
.user-agents-page .custom-select {
  background: #111827;
  border-color: #374151;
  color: #f9fafb;
}

.user-agents-page .form-control:focus,
.user-agents-page .custom-select:focus {
  background: #0f172a;
  color: #fff;
  border-color: #fcd34d;
  box-shadow: none;
}

.user-agents-page .btn-primary {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border: none;
}

.user-agents-page .btn-outline-light {
  border-color: #6b7280;
  color: #e5e7eb;
}

.user-agents-page textarea {
  min-height: 140px;
}

.user-agents-page small.text-muted {
  color: #9ca3af !important;
}

.badge-tool {
  background: rgba(96, 165, 250, 0.18);
  color: #bfdbfe;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

.badge-destination {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

.destination-page {
  color: #eee;
  font-family: 'Segoe UI', sans-serif;
}

.destination-page .card {
  border-radius: 1rem;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}

.destination-page .bg-dark {
  background-color: #1e1e2f !important;
}

.destination-page .day-box {
  min-width: 110px;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.destination-page .day-box:hover {
  transform: translateY(-4px);
  background-color: #2a2a44 !important;
}

.destination-page .badge-pill {
  font-weight: 600;
}

.destination-page .progress {
  height: 20px;
  background-color: rgba(255, 255, 255, 0.1);
}

.destination-page .progress-bar {
  background: linear-gradient(90deg, #ff8c00, #ffcc00);
  background-size: 200% 200%;
  animation: dashboardProgressAnim 2s linear infinite;
}

.destination-page .display-4 {
  font-weight: 700;
}

.destination-page .how-it-works {
  border-radius: 1rem;
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

.destination-page .how-it-works h5 {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.link-yellow {
  color: #ffd700 !important;
  text-decoration: none !important;
}

.link-yellow:hover,
.link-yellow:focus {
  color: #ffef99 !important;
  text-decoration: none !important;
}

.max-w-420 {
  max-width: 420px;
}

.min-w-200 {
  min-width: 200px;
}

.template-page .note-editor.note-frame {
  border-radius: 0.5rem;
}

.template-page .note-toolbar {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.template-page .note-editable {
  min-height: 260px;
}

.template-page code.token {
  background: #fff3cd;
  color: #664d03;
  padding: 0.1rem 0.25rem;
  border-radius: 0.25rem;
  border: 1px solid #ffe69c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.template-page .note-editor .note-editable {
  color: #212529;
  background-color: #fff;
}

.itinerary-item,
.event-chip {
  border-left: 4px solid var(--accent-color, transparent);
}

.itinerary-item::before,
.event-chip::before {
  background-color: var(--accent-color, transparent);
}

.dashboard-page .note-editor .note-editable {
  color: #212529 !important;
  background-color: #fff !important;
}

#chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  max-height: 500px;
  font-size: 14px;
  line-height: 1.4;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  font-family: var(--bs-body-font-family);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #212529;
}

#chat-messages {
  flex: 1;
  padding: 12px 14px;
  overflow-y: auto;
  color: #333333;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fafafa;
}

#chat-messages .you,
#chat-messages .bot {
  display: flex;
  flex-direction: column;
}

#chat-messages .you {
  align-items: flex-end;
}

#chat-messages .bot {
  align-items: flex-start;
}

#chat-messages .you p,
#chat-messages .bot p {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 80%;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  word-break: break-word;
  background: #f1f1f1;
  color: inherit;
}

#chat-messages .you p {
  background: #e1ffc7;
  text-align: right;
}

#chat-messages .bot p {
  background: #ffffff;
  text-align: left;
}

#chat-widget a {
  color: var(--bs-primary, #0d6efd) !important;
  text-decoration: underline;
}

#chat-widget a:hover,
#chat-widget a:focus {
  color: #0a58ca !important;
  text-decoration: underline;
}

#chat-messages .you p strong,
#chat-messages .bot p strong {
  display: inline;
  font-weight: 600;
}

#chat-input {
  display: flex;
  border-top: 1px solid #ddd;
  background-color: #fff;
}

#chat-input input {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 14px;
  color: #212529;
  background: transparent;
}

#chat-input button {
  border: none;
  border-radius: 12px;
  background: #4caf50;
  color: white;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: bold;
}

#chat-close {
  position: absolute;
  top: 4px;
  right: 8px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #212529;
}

#chat-open {
  position: fixed;
  bottom: 20px;
  right: 20px;
  border: none;
  border-radius: 50%;
  background: #4caf50;
  color: #fff;
  padding: 10px 14px;
  font-weight: bold;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
  #chat-widget {
    width: 90%;
    right: 5%;
    bottom: 10px;
  }
}

/* Keep light text for general content, but don't override component-managed link colors */
.text-light a:not(.dropdown-item):not(.nav-link):not(.dropdown-toggle):not(.btn):not(.blueprint-table) {
  color: #f8f9fa;
}

/* Normalize navbar dropdowns to dark everywhere (Bootstrap 5) */
.navbar .dropdown-menu{
  --bs-dropdown-bg: #2a2a3b !important;
  --bs-dropdown-color: #e8ecf2 !important;
  --bs-dropdown-link-color: #e8ecf2 !important;
  --bs-dropdown-link-hover-bg: #73627c !important;
  --bs-dropdown-link-hover-color: #ffffff !important;
  --bs-dropdown-border-color: rgba(255,255,255,.08) !important;
  background-color: var(--bs-dropdown-bg) !important;
  color: var(--bs-dropdown-color) !important;
  border: 1px solid var(--bs-dropdown-border-color) !important;
}
.navbar .dropdown-menu .dropdown-item{
  color: var(--bs-dropdown-link-color) !important;
}
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus{
  background-color: var(--bs-dropdown-link-hover-bg) !important;
  color: var(--bs-dropdown-link-hover-color) !important;
}



