/* ═══════════════════════════════════════════════════════════
   NinoDirect — Monochrome theme override
   Applies a black/white/grey palette over the Bootstrap theme.
   Loaded after libs.bundle.css + theme.bundle.css so all rules
   here win with a single !important where Bootstrap specificity
   would otherwise prevent the override.
═══════════════════════════════════════════════════════════ */

/* ── Bootstrap CSS custom properties ────────────────────── */
:root {
  --bs-primary:           #111111 !important;
  --bs-primary-rgb:       17, 17, 17 !important;
  --bs-link-color:        #111111 !important;
  --bs-link-hover-color:  #444444 !important;
  --bs-danger:            #111111 !important;
  --bs-danger-rgb:        17, 17, 17 !important;
  --bs-success:           #333333 !important;
  --bs-success-rgb:       51, 51, 51 !important;
  --bs-warning:           #111111 !important;
  --bs-warning-rgb:       17, 17, 17 !important;
}

/* ── Diagonal stripe banner (no HTML change needed) ──────── */
body {
  padding-top: 10px !important;
}
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    #111 0px, #111 6px,
    #ffffff 6px, #ffffff 12px
  );
  border-bottom: 1px solid #111;
  z-index: 9999;
}
/* Keep sticky nav just below the stripe */
.navbar.sticky-top,
nav.navbar {
  top: 10px !important;
}

/* ── Colour utility classes ──────────────────────────────── */
.text-primary   { color: #111111 !important; }
.text-danger    { color: #111111 !important; }
.text-success   { color: #333333 !important; }
.text-warning   { color: #111111 !important; }
.bg-primary     { background-color: #111111 !important; }
.bg-danger      { background-color: #111111 !important; }
.bg-success     { background-color: #333333 !important; }
.bg-warning     { background-color: #111111 !important; color: #ffffff !important; }

/* Soft/tinted backgrounds → neutral grey, with matching icon colour */
.bg-primary-soft   { background-color: #f0f0f0 !important; color: #333333 !important; }
.bg-danger-soft    { background-color: #f0f0f0 !important; color: #333333 !important; }
.bg-success-soft   { background-color: #f0f0f0 !important; color: #333333 !important; }
.bg-warning-soft   { background-color: #f0f0f0 !important; color: #333333 !important; }
.bg-dark-soft      { background-color: #e8e8e8 !important; color: #333333 !important; }
.bg-gray-700-soft  { background-color: #e0e0e0 !important; color: #333333 !important; }

/* ── Hero — ALL text inside the dark overlay must be white ── */
/* Covers text-primary (the h1 itself) and text-danger spans  */
/* ("i" and "o" letters) inside it.                          */
.overlay .text-primary,
.bg-cover .text-primary,
[class*="overlay-"] .text-primary,
.overlay .text-danger,
[class*="overlay-"] .text-danger,
.overlay h1,
.overlay h1 span {
  color: #ffffff !important;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary,
.btn-primary.disabled,
.btn-primary:disabled {
  background-color: #111111 !important;
  border-color:     #111111 !important;
  color:            #ffffff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
  background-color: #333333 !important;
  border-color:     #333333 !important;
  color:            #ffffff !important;
}

.btn-warning {
  background-color: #111111 !important;
  border-color:     #111111 !important;
  color:            #ffffff !important;
}
.btn-warning:hover,
.btn-warning:focus {
  background-color: #333333 !important;
  border-color:     #333333 !important;
  color:            #ffffff !important;
}

.btn-outline-primary {
  color:        #111111 !important;
  border-color: #111111 !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: #111111 !important;
  border-color:     #111111 !important;
  color:            #ffffff !important;
}

.btn-danger {
  background-color: #111111 !important;
  border-color:     #111111 !important;
  color:            #ffffff !important;
}
.btn-danger:hover { background-color: #333333 !important; border-color: #333333 !important; }

.btn-success {
  background-color: #333333 !important;
  border-color:     #333333 !important;
  color:            #ffffff !important;
}
.btn-success:hover { background-color: #555555 !important; border-color: #555555 !important; }

/* ── Badges ──────────────────────────────────────────────── */
.badge.bg-primary,
span.badge.bg-primary                   { background-color: #111111 !important; color: #ffffff !important; }
.badge.bg-danger                        { background-color: #111111 !important; color: #ffffff !important; }
.badge.bg-success                       { background-color: #333333 !important; color: #ffffff !important; }
.badge.bg-warning                       { background-color: #111111 !important; color: #ffffff !important; }
.badge.bg-success-soft                  { background-color: #eeeeee !important; color: #111111 !important; }
.badge.bg-primary-soft                  { background-color: #eeeeee !important; color: #111111 !important; }
.badge-rounded-circle.bg-success        { background-color: #111111 !important; color: #ffffff !important; }
.badge-rounded-circle.bg-success-soft   { background-color: #e8e8e8 !important; color: #111111 !important; }
.badge-rounded-circle.bg-primary-soft   { background-color: #e8e8e8 !important; color: #111111 !important; }
.badge.rounded-pill.bg-warning          { background-color: #111111 !important; color: #ffffff !important; }

/* ── Icon circles ────────────────────────────────────────── */
.icon-circle.bg-danger  { background-color: #111111 !important; }
.icon-circle.bg-primary { background-color: #111111 !important; }
.icon-circle.bg-success { background-color: #333333 !important; }
.icon-circle.bg-warning { background-color: #111111 !important; }

/* ── Inline SVG fill overrides ───────────────────────────── */
/* Targets hardcoded fill="#335EEA" / fill="#1b2a4e" inside inline SVGs */
svg circle[fill="#335EEA"],
svg circle[fill="#335eea"] { fill: #111111 !important; }
svg path[fill="#335EEA"],
svg path[fill="#335eea"]   { fill: #111111 !important; }
svg path[fill="#1b2a4e"]   { fill: #111111 !important; }
svg rect[fill="#335EEA"],
svg rect[fill="#335eea"]   { fill: #111111 !important; }

/* Opacity circles used as soft tints in dropdown icons */
svg circle[fill="#335EEA"][opacity],
svg circle[fill="#335eea"][opacity] { fill: #111111 !important; opacity: 0.12 !important; }

/* ── Navigation ──────────────────────────────────────────── */
.navbar-light .navbar-nav .nav-link { color: #444444 !important; }
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus { color: #111111 !important; }
.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.active { color: #111111 !important; }

.dropdown-item:hover,
.dropdown-item:focus { background-color: #f2f2f2 !important; color: #111111 !important; }

.list-group-item h6.text-primary,
.list-group-item .text-primary { color: #111111 !important; }

/* ── Blue-grey theme text colours → neutral greys ────────── */
/* The theme maps text-gray-700 and text-muted to steel-blue  */
/* (#506690 / #6c8aec). Override to neutral for monochrome.  */
.text-gray-700  { color: #555555 !important; }
.text-gray-600  { color: #666666 !important; }
.text-gray-500  { color: #888888 !important; }
.text-muted     { color: #777777 !important; }

/* ── Phone badge — white text on the now-black pill ─────── */
.badge.rounded-pill .text-dark,
.badge.rounded-pill .h5,
.badge.rounded-pill span { color: #ffffff !important; }

/* ── Links ───────────────────────────────────────────────── */
a { color: #111111; }
a:hover { color: #444444; }
/* Preserve white links in dark sections */
.text-white a,
.bg-dark a,
.overlay a { color: #ffffff; }

/* ── Borders ─────────────────────────────────────────────── */
.border-primary { border-color: #111111 !important; }

/* ── Form focus states ───────────────────────────────────── */
.form-control:focus,
.form-select:focus {
  border-color: #111111 !important;
  box-shadow: 0 0 0 0.25rem rgba(17, 17, 17, 0.15) !important;
}
.form-check-input:checked {
  background-color: #111111 !important;
  border-color:     #111111 !important;
}

/* ── Stripe / progress / range ───────────────────────────── */
.progress-bar                  { background-color: #111111 !important; }
.nav-pills .nav-link.active    { background-color: #111111 !important; color: #ffffff !important; }
.nav-pills .nav-link           { color: #111111 !important; }

/* ── Card hover lift (keep subtle) ──────────────────────── */
.card.shadow-lg { box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important; }

/* ── Portal sidebar / active states ─────────────────────── */
.btn-outline-secondary         { color: #444444 !important; border-color: #cccccc !important; }
.btn-outline-secondary:hover   { background-color: #111111 !important; border-color: #111111 !important; color: #ffffff !important; }

/* ── Stripe payments element accent ─────────────────────── */
/* Already handled via JS in payment.js appearance object */

/* ── Checkbox / toggle accent ────────────────────────────── */
input[type="checkbox"]:checked,
input[type="radio"]:checked { accent-color: #111111; }

/* ── Logo SVG — make external SVG img monochrome ─────────── */
/* Catches navbar logo (.navbar-brand-img) AND any plain img using nd.svg */
.navbar-brand-img,
img[src*="nd.svg"] {
  filter: brightness(0) !important;
}

/* ── Dark backgrounds → pure black ──────────────────────── */
.bg-dark { background-color: #111111 !important; }

/* ── Badges / icons inside dark sections ─────────────────
   bg-danger and bg-primary badges are now #111 — invisible
   on the #111 dark bg. Flip to white outline style.       */
.bg-dark .badge.bg-danger,
.bg-dark .badge.badge-rounded-circle.bg-danger,
.bg-dark .badge-rounded-circle.bg-danger,
.bg-dark .icon-circle.bg-danger {
  background-color: transparent !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
}

/* Muted text on dark bg needs to be lighter to stay readable */
.bg-dark .text-muted,
.bg-dark p.text-muted,
.bg-dark ul.text-muted,
.bg-dark li {
  color: #aaaaaa !important;
}

/* ── Cookie consent banner ───────────────────────────────── */
.cc-btn.cc-allow,
.cc-btn { background-color: #111111 !important; color: #ffffff !important; border-color: #111111 !important; }
.cc-btn:hover { background-color: #333333 !important; }
.cc-link { color: #111111 !important; }
