/* =========================================================
   SIDEBAR - Sky Cockpit
========================================================= */

/* =========================================================
   SIDEBAR – Sky Cockpit (Flex-aware, Scroll-safe)
========================================================= */
#sidebar {
  /* Layout */
  flex: 0 0 280px;        /* fixed column in flex row */
  width: 280px;
  height: 100%;
  min-height: 0;          /* 🔥 REQUIRED for flex scrolling */
  align-self: stretch;    /* fill parent height */

  /* Spacing */
  padding: 0.5rem;

  /* Scrolling */
  overflow-y: auto;
  overscroll-behavior: contain;

  /* Visuals */
  background: linear-gradient(
    180deg,
    #d1dbf2 0%,
    #b9c7e6 45%,
    #a2b3db 100%
  );
  border-right: 1px solid rgba(255, 255, 255, 0.6);
  color: #1e3a5f;

  box-shadow:
    0 0 30px rgba(255, 255, 255, 0.6),
    inset -10px 0 20px rgba(255, 255, 255, 0.35);

  /* Animation hooks (desktop uses width, mobile uses transform) */
  transition:
    width 0.3s ease,
    flex-basis 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;

  z-index: 1030;
}

/* #sidebar {
  /* position: fixed; */
  /* top: calc(var(--header-height) + var(--navbar-height)); * /
  left: 0;
  width: 280px;
  /* height: calc(100vh - var(--header-height) - var(--navbar-height)); * /
  padding: 0.5rem;
  
    flex-shrink: 0;        /* do not shrink below width * /
  height: 100%;          /* fill parent height */
  min-height: 0;         /* allow scrolling */
  overflow-y: auto;      /* scroll when content overflows * /
  overscroll-behavior: contain;

    min-height: 0;   /* 🔥 REQUIRED for scrolling in flex layouts * /
 


  /* Sky gradient */
  /* background: linear-gradient(180deg, #cfe9ff 0%, #b6dcfb 40%, #9cccf2 100%); * /
  background: linear-gradient(180deg, #d1dbf2 0%, #b9c7e6 45%, #a2b3db 100%);

  border-right: 1px solid rgba(255, 255, 255, 0.6);
  transform: translateX(-100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1030;
  overflow-y: auto;
  overscroll-behavior: contain;
    align-self: stretch;     /* fill parent height * /


  color: #1e3a5f; /* cockpit blue text * /
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.6),
    inset -10px 0 20px rgba(255, 255, 255, 0.35);
} */

/* =========================================================
   FIELDSETS - Cloud Glass Panels
========================================================= */
.sidebar-fieldset {
  /* background: rgba(255,255,255,0.55); */
  border: 3px solid rgb(255, 255, 255) !important;
  border-radius: 1rem;
  padding: 0.75rem;
  margin-bottom: 0.9rem;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow: 0 8px 20px rgba(90, 150, 200, 0.25),
    inset 0 0 10px rgba(255, 255, 255, 0.6);

  position: relative;
  transition: all 0.3s ease;
}


#sidebar fieldset.sidebar-fieldset {
  border: 3px solid rgb(255, 255, 255) !important;
  border-radius: 1rem;
  padding: 0.75rem;
  margin-bottom: 0.9rem;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow: 0 8px 20px rgba(90, 150, 200, 0.25),
              inset 0 0 10px rgba(255, 255, 255, 0.6);

  position: relative;   /* required for ::before */
  transition: all 0.3s ease;
  /* background: rgba(255,255,255,0.55); */
}


/* Cloud glow halo */
.sidebar-fieldset::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 0.9rem;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.9),
      transparent 60%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(255, 255, 255, 0.7),
      transparent 65%
    );
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.sidebar-fieldset:hover::before {
  /* opacity: 1; */
  opacity: 0.75; /* was 1 */
  animation: cloudPulse 3s ease-in-out infinite;
}

.sidebar-fieldset:hover {
  color: #000;
}

@keyframes cloudPulse {
  0% {
    filter: blur(6px);
    opacity: 0.6;
  }
  50% {
    filter: blur(10px);
    opacity: 0.9;
  }
  100% {
    filter: blur(7px);
    opacity: 0.7;
  }
}

/* =========================================================
   LEGENDS
========================================================= */
.sidebar-fieldset legend {
  float: none;
  padding: 0 0.5rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  /* color: #2b5d8a; aviation blue */
  color: black;
}

.sidebar-fieldset legend i {
  font-size: 1.2rem;
  opacity: 1;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.sidebar-fieldset:hover legend i {
  opacity: 1;
  transform: translateY(-1px) rotate(-5deg);
}

/* =========================================================
   INPUTS & SELECTS
========================================================= */
.sidebar-fieldset input,
.sidebar-fieldset textarea,
.sidebar-fieldset .form-select {
  background: rgba(255, 255, 255, 0.75);
  color: #1e3a5f;
  /* border: 1px solid rgba(160, 200, 235, 0.8); */
  /* border-radius: 0.55rem; */
  padding: 0.2rem 0.2rem;
  transition: all 0.25s ease;

  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9),
    0 3px 6px rgba(120, 170, 220, 0.25);
}

.sidebar-fieldset input:hover,
.sidebar-fieldset textarea:hover,
.sidebar-fieldset .form-select:hover {
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
    0 6px 12px rgba(120, 170, 220, 0.35);
}

.sidebar-fieldset input:focus,
.sidebar-fieldset textarea:focus,
.sidebar-fieldset .form-select:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.9),
    0 10px 18px rgba(90, 150, 200, 0.45);
}

/* Custom dropdown arrow */
.sidebar-fieldset .form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%232b5d8a' d='M2 0L0 2h4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 0.65rem auto;
}

/* =========================================================
   CHECKBOXES / RADIOS
========================================================= */
.sidebar-fieldset input[type="checkbox"],
.sidebar-fieldset input[type="radio"] {
  accent-color: #6fbaf8;
  cursor: pointer;
}

/* =========================================================
   RANGE SLIDERS
========================================================= */
.sidebar-fieldset input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 0.4rem;
  background: linear-gradient(
    90deg,
    rgba(180, 220, 255, 0.6),
    rgba(255, 255, 255, 0.9)
  );
  border-radius: 0.25rem;
}

.sidebar-fieldset input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1rem;
  height: 1rem;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(180, 220, 255, 0.9);
  cursor: pointer;
}

/* =========================================================
   CTA FIELDSET - Clear Sky Highlight
========================================================= */
.cta-fieldset {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.9),
    rgba(210, 235, 255, 0.9)
  );
  color: #1e3a5f;
}

/* =========================================================
   SIDEBAR CARD BORDER
========================================================= */
.sidebar-border {
  background: rgba(255, 255, 255, 0.65);
  border: 2px solid rgba(255, 255, 255, 0.9);
  outline: 2px solid rgba(180, 220, 255, 0.6);
  outline-offset: -6px;
  border-radius: 0.85rem;
  padding: 1rem;

  box-shadow: 0 10px 20px rgba(120, 170, 220, 0.35),
    inset 0 0 12px rgba(255, 255, 255, 0.7);
}

/* =========================================================
   OPEN STATE
========================================================= */
#sidebar.open,
body.sidebar-open #sidebar {
  transform: translateX(0);
}

/* =========================================================
   OVERLAY - Soft Sky Dimming
========================================================= */
#sidebarOverlay {
  display: none;
  position: fixed;
  width: 100%;
  height: 100vh;
  background-color: rgba(160, 200, 235, 0.35);
  backdrop-filter: blur(2px);
  z-index: 1020;
    inset: 0;
}

 

#sidebarOverlay.show {
  display: block;
}

/* Default */
.sidebar-fieldset .form-select {
  color: #1e3a5f;
  transition: color 0.25s ease;
}

/* Fieldset hover */
.sidebar-fieldset:hover .form-select {
  color: #000;
}

/* Focus (keyboard / click) */
.sidebar-fieldset .form-select:focus {
  color: #000;
}

.sidebar-fieldset:hover {
  color: #000;
  font-weight: 600;
}

.sidebar-fieldset > * {
  position: relative;
  z-index: 2;
}

.sidebar-fieldset:hover {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ✅ disabled LAST */
#sidebar .sidebar-fieldset .form-select:disabled {
  --bs-form-select-bg-img: none;
  --bs-form-select-bg-icon: none;
  background-color: rgb(199 229 254);
  color: #1e3a5f;
  opacity: 1;
}

.form-check {
  display: block;
  min-height: 1.5rem;
  padding-left: 0.5rem;
  margin-bottom: 0.125rem;
}

.form-check-label {
  font-weight: 400;
  font-size: 1em;
  padding-left: 0.5rem;
}

/* =========================================================
   NAVBAR – Sky Ocean Aviation
========================================================= */
.navbar {
  background: linear-gradient(180deg, #b9c7f0 0%, #94a5db 45%, #7f93d1 100%);

  border-bottom: 1px solid rgba(255, 255, 255, 0.6);

  box-shadow: 0 4px 15px rgba(60, 90, 150, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.45);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* =========================================================
   BRAND
========================================================= */
.navbar-brand {
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(40, 60, 120, 0.6);
}

/* Optional aviation accent icon */
.navbar-brand i {
  margin-right: 0.35rem;
  opacity: 0.9;
}

/* =========================================================
   NAV LINKS
========================================================= */
.navbar .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.25s ease;
}

/* Hover – cloud highlight */
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* Active link */
.navbar .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    0 0 12px rgba(255, 255, 255, 0.8);
}

/* =========================================================
   DROPDOWNS
========================================================= */
.navbar .dropdown-menu {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(180, 200, 245, 0.8);
  border-radius: 0.65rem;

  box-shadow: 0 12px 24px rgba(80, 110, 170, 0.35);
}

.navbar .dropdown-item {
  color: #2b3f7a;
  font-weight: 500;
  border-radius: 0.45rem;
  transition: all 0.2s ease;
}

.navbar .dropdown-item:hover {
  background: linear-gradient(
    90deg,
    rgba(148, 165, 219, 0.25),
    rgba(255, 255, 255, 0.9)
  );
  color: #1e2f66;
}

/* =========================================================
   TOGGLER (MOBILE)
========================================================= */
.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Custom hamburger */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,0.95)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* =========================================================
   NAVBAR + SIDEBAR CONTINUITY
========================================================= */
body.sidebar-open .navbar {
  box-shadow: 0 6px 18px rgba(70, 100, 160, 0.45),
    inset 0 -1px 0 rgba(255, 255, 255, 0.6);
}

.navbar.bg-dark .nav-link:hover {
  background-color: #90ee90;
  background-image: none;
}

/* ===============================
   LOCKED BUTTON (PREMIUM TEASER)
================================ */

.btn-locked {
  position: relative;
  cursor: pointer;
  pointer-events: auto; /* allow modal click */
  font-weight: 600;
  letter-spacing: 0.02em;
}
✨ Pulse Base Class
css
Copy code
/* ===============================
   PULSE UTILITY
================================ */

.pulse {
  animation: lockedPulse 2.8s ease-in-out infinite;
}

.btn-locked.btn-outline-secondary {
  color: #9aa4b2;
  border-color: rgba(148, 165, 219, 0.5);
  background: rgba(148, 165, 219, 0.08);

  box-shadow: 0 0 0 rgba(148, 165, 219, 0);

  transition: color 0.25s ease, box-shadow 0.3s ease, transform 0.25s ease,
    border-color 0.25s ease;
}
.btn-locked.btn-outline-secondary:hover {
  color: #ffffff;
  border-color: #94a5db;
  background: rgba(148, 165, 219, 0.25);

  transform: translateY(-1px);

  box-shadow: 0 0 10px rgba(148, 165, 219, 0.6),
    0 0 22px rgba(148, 165, 219, 0.35);
}
@keyframes lockedPulse {
  0% {
    box-shadow: 0 0 0 rgba(148, 165, 219, 0);
  }
  50% {
    box-shadow: 0 0 6px rgba(148, 165, 219, 0.35),
      0 0 14px rgba(148, 165, 219, 0.2);
  }
  100% {
    box-shadow: 0 0 0 rgba(148, 165, 219, 0);
  }
}


















/* =========================================================
   MODAL – Sky Cockpit Glass
========================================================= */

/* Backdrop – soft sky dim */
.modal-backdrop {
  background-color: rgba(160, 200, 235, 0.45);
  backdrop-filter: blur(2px);
}

/* Modal shell */
.modal-content {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(235, 242, 255, 0.92) 45%,
    rgba(220, 230, 250, 0.9) 100%
  );

  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 1rem;

  color: #1e3a5f;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow:
    0 18px 40px rgba(80, 120, 180, 0.35),
    inset 0 0 18px rgba(255, 255, 255, 0.7);
}

/* =========================================================
   MODAL HEADER – Aviation Gradient
========================================================= */
.modal-header {
  background: linear-gradient(
    180deg,
    #b9c7f0 0%,
    #94a5db 45%,
    #7f93d1 100%
  );

  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;

  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.5),
    0 4px 10px rgba(60, 90, 150, 0.35);
}

/* Title */
.modal-title {
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(40, 60, 120, 0.6);
}

/* Close button */
.modal-header .btn-close {
  filter: invert(1) brightness(1.2);
  opacity: 0.85;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

/* =========================================================
   MODAL BODY – Cloud Panel
========================================================= */
.modal-body {
  color: #1e3a5f;
  line-height: 1.55;
}

/* Optional section headings inside modal */
.modal-body h4,
.modal-body h5 {
  color: #2b5d8a;
  font-weight: 600;
}

/* =========================================================
   MODAL FOOTER
========================================================= */
.modal-footer {
  border-top: 1px solid rgba(180, 200, 245, 0.6);
  background: rgba(255, 255, 255, 0.65);
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

/* =========================================================
   MODAL BUTTONS – Match Navbar / Sidebar
========================================================= */
.modal-footer .btn-primary {
  background: linear-gradient(
    180deg,
    #94a5db 0%,
    #7f93d1 100%
  );
  border: none;

  box-shadow:
    0 4px 12px rgba(120, 150, 220, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.modal-footer .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 6px 16px rgba(120, 150, 220, 0.6);
}
