/* ---------- Base Template Styles (Bootstrap-first) ---------- */

/* Remove custom caret that duplicated Bootstrap's default arrow */
.dropdown-toggle::after { /* keep Bootstrap default; no custom override here */ }

/* Ensure dropdown shows when Bootstrap toggles .show */
.dropdown-menu { box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.175); }
.dropdown-menu.show { display: block; }

/* FAB (kept brand colors via CSS vars defined in your existing theme) */
.fab-swissinsight {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 1050;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--swissplat-primary); color: #fff; border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.fab-swissinsight:hover {
  background: var(--swissplat-primary-dark);
  transform: scale(1.06);
  color: #fff; text-decoration: none;
}

/* Main spacing to avoid overlap with fixed navbar */
main { padding-top: 80px; min-height: calc(100vh - 80px - 300px); }

/* Avatar */
.avatar-sm {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 500;
}

/* Collapsed menu: allow scroll; keep dropdowns readable */
@media (max-width: 991.98px) {
  #navbarNav {
    max-height: calc(100dvh - var(--navbar-h, 56px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 1rem;
  }
  .navbar .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    margin: .25rem 0 .75rem;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: none;
  }
  .navbar .dropdown-menu.show { display: block; }
}

/* ---------- Footer (keep brand palette) ---------- */
.footer {
  background: #0b1220; color: #fff;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: #cfe0ff; text-decoration: underline; }

.footer .footer-heading {
  color: #fff; font-weight: 600; margin-bottom: 1rem; position: relative;
}
.footer .footer-heading::after {
  content: ""; position: absolute; left: 0; bottom: -0.5rem;
  width: 36px; height: 3px; background: #4da3ff; border-radius: 3px;
}

.text-white-75 { color: rgba(255,255,255,0.75) !important; }

.footer .social-icons { display: flex; gap: 12px; flex-wrap: wrap; }
.footer .social-icon {
  display: inline-flex; width: 44px; height: 44px;
  align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(255,255,255,0.18); color: #fff;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.footer .social-icon i { font-size: 18px; line-height: 1; }
.footer .social-icon:hover { background: rgba(77,163,255,0.35); transform: translateY(-2px); }

.footer .newsletter-form .form-control {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
}
.footer .newsletter-form .form-control::placeholder { color: #e0e0e0; }
.footer .newsletter-form .btn.btn-primary { background: #4da3ff; border-color: #4da3ff; }
.footer .newsletter-form .btn.btn-primary:hover { background: #298dff; border-color: #298dff; }

.footer .border-top { border-top: 1px solid rgba(255,255,255,0.12) !important; }
