.offcanvas-body {
    flex-grow : 1 !important;
    padding : 0px  !important;
    overflow-y : auto !important;
}

.options-btn {
    background-color: #ffffff; 
    color: #51005e; 
    border:   1px solid white; 
    font-size: 25px; 
    padding: 18px 16px; 
    border-radius: 0px !important; 
    transition: all 0.3s ease; 
    width: 100%;
    max-width: 75px;
  }
  .options-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(81, 0, 94, 0.5); 
  }

  .options-header {
    font-size: 12px !important;
    color: #51005e !important;
  }

  
  
/* Arrow Down Hamburger */
.arrowdown-burger-label {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.arrowdown-burger-lines {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  position: relative;
}

.arrowdown-burger-line {
  width: var(--bar-width, 30px);
  height: var(--bar-height, 4px);
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

/* Arrow Down Animation */
.arrowdown-burger-label .arrowdown-burger-lines {
  align-items: flex-end;
}

.arrowdown-burger-label .arrowdown-burger-line:nth-child(1) {
  transform-origin: 100% calc(var(--bar-height));
}

.arrowdown-burger-label .arrowdown-burger-line:nth-child(3) {
  transform-origin: 100% 0;
}

.arrowdown-burger-input:checked ~ .arrowdown-burger-label .arrowdown-burger-line:nth-child(2) {
  opacity: 0;
}

.arrowdown-burger-input:checked ~ .arrowdown-burger-label .arrowdown-burger-line:nth-child(1) {
  transform: translateY(var(--bar-arrow-offset, 10px)) rotate(var(--bar-arrow-angle, 45deg));
}

.arrowdown-burger-input:checked ~ .arrowdown-burger-label .arrowdown-burger-line:nth-child(3) {
  transform: translateY(calc(var(--bar-arrow-offset, 10px) * -1)) rotate(calc(var(--bar-arrow-angle, 45deg) * -1));
}

.arrowdown-burger-input:checked ~ .arrowdown-burger-label .arrowdown-burger-line:nth-child(1),
.arrowdown-burger-input:checked ~ .arrowdown-burger-label .arrowdown-burger-line:nth-child(3) {
  width: calc(var(--bar-width, 30px) * 0.75);
}

.arrowdown-burger-input:checked ~ .arrowdown-burger-label .arrowdown-burger-lines {
  transform: translateY(calc(var(--bar-arrow-offsetcenter, 5px) * -1));
}

/* Collapsible Menu */
.collapse {
  display: none;
  transition: all 0.3s ease-in-out;
}

.collapse.show {
  display: block;
}

.options-header {
  background-color: #f5f5f5;
  border-bottom: 1px solid #ccc;
}

.cruxx-purple {
  color: #51005e;
}

.trends-box {
  padding: 10px 0;
}

.chart-switch {
  padding: 10px 0;
}


/* slider and its css */
.slider {
  position: absolute;
  top: 0;
  right: -250px; /* Start off-screen */
  width: 250px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease; /* Enables smooth sliding */
  z-index: 1;
  overflow-y: auto;
}

/* Hidden state */
.slider.hidden {
  display: none;
}
.slider-header {
  position: sticky;
  top: 0;
  z-index: 1060; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: white;
  border-bottom: 1px solid #ddd;
}
.close-slider {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (min-width: 768px) and (max-width: 991px) {
  .slider {
    right: -100%; 
  }
}

.slider-backdrop.show + .slider {
  right: 0;
}

/* Backdrop */
.slider-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.slider-backdrop.show {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 992px) {
  .slider-backdrop {
    display: none;
  }
}


/* top-bottom switch pill */
.custom-toggle-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.toggle-container {
  position: relative;
  display: inline-block;
  width: 160px; 
  height: 30px; 
}

.toggle-container input {
  display: none;
}

.toggle-pill {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  padding: 0.25 rem 0.5 rem;
}

.toggle-pill::before {
  content: '';
  position: absolute;
  left: 0;
  width: 50%;
  height: 100%;
  background-color: #51005E; /* Purple background for selected */
  transition: left 0.3s ease, border-radius 0.3s ease;
  border-radius: 18px 0 0 18px; /* Rounded left, square right by default */
}

.toggle-option {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  line-height: 30px;
  z-index: 2;
  color: #51005E;
  transition: color 0.3s ease;
}

input:checked + .toggle-pill::before {
  left: 50%;
  border-radius: 0 18px 18px 0; /* Rounded right, square left when switched */
}

input:checked + .toggle-pill .toggle-option:first-child {
  color: #51005E;
}

input:checked + .toggle-pill .toggle-option:last-child {
  color: #fff;
}

input:not(:checked) + .toggle-pill .toggle-option:first-child {
  color: #fff;
}

input:not(:checked) + .toggle-pill .toggle-option:last-child {
  color: #51005E;
}

.breakdown-icon {
  font-size: 18px;
  color: #51005E; 
}

.breakdown-vol {
  text-align: center ;
  font-size: 12px;
  color: black;
  font-weight: bold;
  white-space: nowrap;
}

.breakdown-btn {
  font-size: 12px;
  font-weight: bold;
  color: #348CBE;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  padding-left: 0 !important;
  position: relative;
}

.breakdown-btn::after {
  font-family: "Font Awesome 5 Free";
  content: "\f0d7"; 
  font-weight: 900;
  font-size: 12px;
  margin-left: 5px;
}

.breakdown-menu {
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background: #fff;
  border: none;
  padding: 4px 0 !important;
  min-width: 140px !important;
  left: 35% !important; 
  transform: translateX(-50%) !important; 
  position: absolute !important;
  top: 100% !important; 
  z-index: 1050; 
}

.breakdown-item {
  font-size: 12px !important;
  padding: 8px 30px !important;
  color: #348CBE !important;
  font-weight: bold !important;
  /* text-align: center !important; */
  display: block !important;
  white-space: nowrap !important;
}

.breakdown-item:hover {
  background: #F8EAF7;
  color: #51005E;
}

@media (max-width: 576px) {
  .breakdown-menu {
    min-width: 120px !important;
    font-size: 10px !important;
  }

  .breakdown-item {
    font-size: 10px !important;
    padding: 6px 10px !important;
  }
}


/* tab switch logic */
.taeb-switch {
  position: relative;
  display: flex;
  background-color: #f4f4f4; /* Light gray background */
  border-radius: 15px; /* Fully rounded */
  padding: 10px;
  width: 210px; /* Adjust width if needed */
  overflow: hidden;
}

.taeb-switch:after {
  content: "";
  position: absolute;
  width: 48% !important;
  top: 4px;
  left: 4px;
  transition: left 0.3s ease-in-out;
  border-radius: 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  background-color: #51005E;
  height: calc(100% - 8px);
  z-index: 0;
}

.taeb-switch.right:after {
  left: calc(50% + 4px); 
}

.taeb {
  flex: 1;
  text-align: center;
  /* padding: 10px 0; */
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color 0.2s;
  color: #51005E; 
}

.taeb.active {
  color: white;
}


.nav-tabs .nav-link.feedback-active.active {
  color: white !important;
  background-color: #51005E;
  border-color: #51005E #51005E transparent;
  transition: 0.3s all;
  padding: 0.75rem;
  font-weight: bold;
  min-width: 120px;
  text-align: center;
}

.nav-tabs .nav-link.charts-active.active {
  color: white !important;
  background-color: #348CBE;
  border-color: #007bff #007bff transparent;
  transition: 0.3s all;
  padding: 0.75rem;
  font-weight: bold;
  min-width: 120px;
  text-align: center;
}

.nav-tabs .nav-link.feedback-active.active,
.nav-tabs .nav-link.charts-active.active {
  min-width: 220px;
  transition: 0.3s all;
}

.nav-tabs .nav-link.feedback-active.active .insights-nav-link-sub,
.nav-tabs .nav-link.charts-active.active .insights-nav-link-sub {
  display: inline-block;
}
#feedback {
  border: 1px solid #51005E;
  box-shadow: 0px 0px 15px 0px #51005E80; /* 80 for 50% opacity */
}

#charts {
  border: 1px solid #3d90ef;
  box-shadow: 0px 0px 15px 0px #3d90ef80;
}


/* new view css */
 