  @import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

  :root {
    --purple: #51005E;
    --cruxx-text-light: #5e5e5e;
    --cruxx-white: #FFFFFF;
    --cruxx-bg-light: rgba(194, 165, 196, 0.842);
  }

  /* correct and optimized css for filter nav bar */
  .filter-navbar {
    width: 100%;
    height: 51px;
  }

  .filter-navbar>li {
    width: 220px;
  }

  .filter-navbar>li.active {
    background: var(--purple);
  }

  .filter-navbar>li.active>a {
    color: var(--cruxx-white);
  }

  .filter-navbar>li.active>a svg {
    fill: var(--cruxx-white);
  }

  .filter-navbar>li:hover {
    background: var(--cruxx-bg-light);
  }

  .filter-navbar>li.active:hover>a {
    background: var(--purple);
    color: var(--cruxx-white);
  }

  .filter-navbar>li.active a svg {
    filter: var(--purple);
  }

  .filter-navbar li {
    float: left;
    position: relative;
    list-style: none;
    text-align: left;
    background: var(--cruxx-white);
    transition: all 0.3s ease-in-out;
  }

  .filter-navbar li>a {
    border: 0.5px solid #EDEDED;
  }

  .filter-navbar>li:first-child a {
    border-left: 0.5px solid #EDEDED;
  }

  .filter-navbar>li a {
    border-left: none;
  }

  .filter-navbar li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--purple);
    font-size: 12px;
    font-weight: 700;
    position: relative;
    min-height: 75.5px;
    line-height: 2;
  }

  .filter-navbar li a b {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: ;
  }

  .filter-navbar li a span {
    font-size: 10px;
    color: var(--cruxx-text-light);
    margin-bottom: 5px;
    font-weight: 600;
  }

  .filter-navbar li svg {
    text-align: right;
    position: absolute;
    right: 14px;
    bottom: 25px;
    fill: var(--purple);
  }

  .filter-navbar li ul {
    display: none;
    width: 100%;
    background: #fff;
    margin-top: 0px;
    border-bottom: 1px solid #e9d9d9;
    border-left: 1px solid #e9d9d9;
    border-right: 1px solid #e9d9d9;
    border-top: none; 
  }

  .filter-navbar>li>ul {
    padding-top: 0px;
    /* padding-bottom: 1.5rem; */
  }

  .filter-navbar li ul a {
    font-size: 9px;
    font-weight: 500;
  }

  .filter-navbar li:hover li {
    background-color: var(--cruxx-white);
    float: none;
  }

  .filter-navbar li:hover li:hover {
    background: var(--cruxx-bg-light);
    color: var(--purple);
  }

  .filter-navbar li li:hover li {
    background: var(--cruxx-white);
  }

  .filter-navbar li:hover:not(.apply-template)>ul {
    display: block;
    position: absolute;
    z-index: 3;
  }

  .filter-navbar li ul li {
    border: none;
    border-top: 0;
  }
  .filter-navbar li ul li svg {
    font-size: 12px;
    top: 11px;
    position: absolute;
    transform: rotate(-90deg);
  }

  .filter-navbar ul ul {
    left: 100%;
    top: 0px;
  }

  .filter-navbar ul ul li:first-child label {
    border-bottom: 0.5px solid #EDEDED;
  }

  /* Dropdown checkbox styling */
  .filter-form-group {
    display: block;
  }

  .filter-form-group input {
    padding: 0;
    height: initial;
    width: initial;
    margin-bottom: 0;
    display: none;
    cursor: pointer;
  }

  .filter-form-group label {
    position: relative;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--purple);
    display: block;
    padding: 8px 10px;
    text-align: left;
  }

  .filter-form-group label:before {
    content: '';
    color: #51005E;
    font-size: 12px;
    margin-right: 5px;
    -webkit-appearance: none;
    background-color: transparent;
    border: 1px solid #C5C5C5;
    padding: 4px;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 1px;
    
  }

  .filter-form-group input:checked+label:after {
    content: '';
    display: block;
    position: absolute;
    /*color: #51005E;*/
    color: #FFFFFF;
    font-size: 12px;
    margin-right: 5px;
    top: 11px;
    left: 13px;
    width: 3px;
    height: 5px;
    /*border: solid var(--purple);*/
    border: solid #ffffff;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
  }

  .filter-form-group input:checked+label:before {
      background-color: #51005E;
      border-color: #51005E;
  }

  .city-state-dropdown .filter-form-group input:checked+label:after {
    top: 13px!important;
  }

  .city-state-dropdown .dropdown-group .filter-form-group input:checked+label:after {
    top: 15px!important;
  }

  /* Mobile responsiveness */
  @media screen and (max-width: 575px) {
    .filter-navbar ul ul {
      left: 0;
      top: 100%;
    }

    .filter-navbar>li {
      border: 0.5px solid #EDEDED;
    }

    .filter-navbar>li:first-child {
      border-right: none;
      border-bottom: none;
    }

    .filter-navbar>li:last-child {
      border-top: 0.5px solid transparent;
      border-left: 0.5px solid transparent;
    }
  }

  @media screen and (min-width: 576px) and (max-width: 767px) {
    .filter-navbar>li {
      width: 25%;
    }

    .filter-navbar ul ul {
      left: 0;
      top: 100%;
    }

    .filter-navbar li ul {
      width: 127px;
    }
  }
  /* end of filter navbar css */


  /* correct and optimized css for chart-navbar */
  @import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');


  /* Dropdown CSS for Sentiment Distribution */
  .chart-navbar {
    width: 100%;
    height: 51px;
  }

  .chart-navbar>li {
    width: 100%;
    max-width: 220px;
  }

  .chart-navbar>li.active {
    background: var(--purple);
  }

  .chart-navbar>li.active>a {
    color: var(--cruxx-white);
  }

  .chart-navbar>li.active>a svg {
    fill: var(--cruxx-white);
  }

  .chart-navbar>li:hover {
    background: var(--cruxx-bg-light);
  }

  .chart-navbar>li.active:hover>a {
    background: var(--purple);
    color: var(--cruxx-white);
  }

  .chart-navbar>li.active a svg {
    fill: var(--purple);
  }

  .chart-navbar li {
    float: left;
    position: relative;
    list-style: none;
    text-align: left;
    background: var(--cruxx-white);
    transition: all 0.3s ease-in-out;
  }

  .chart-navbar li>a {
    border: 0.5px solid #EDEDED;
  }

  .chart-navbar>li:first-child a {
    border-left: 0.5px solid #EDEDED;
  }

  .chart-navbar>li a {
    border-left: none;
  }

  .chart-navbar li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--purple);
    font-size: 12px;
    font-weight: 700;
    position: relative;
    min-height: 75.5px;
    line-height: 2;
  }

  .chart-navbar li a b {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .chart-navbar>li>a>span {
    font-size: 10px;
    color: var(--cruxx-text-light);
    margin-bottom: 5px;
    font-weight: 600;
  }

  .chart-navbar li svg {
    text-align: right;
    position: absolute;
    right: 14px;
    bottom: 25px;
    fill: var(--purple);
  }

  .chart-navbar li ul {
    display: none;
    width: 100%;
    background: #fff;
    margin-top: 0px;
  }

  .chart-navbar>li>ul {
    padding-top: 8px;
  }

  .chart-navbar li ul a {
    font-size: 9px;
    font-weight: 500;
  }

  .chart-navbar li:hover li {
    background-color: var(--cruxx-white);
    float: none;
  }

  .chart-navbar li:hover li:hover {
    background: var(--cruxx-bg-light);
  }

  .chart-navbar li:hover>ul {
    display: block;
    position: absolute;
    z-index: 1;
  }

  .chart-navbar li ul li {
    border: none;
  }

  .chart-navbar ul ul {
    left: 100%;
    top: 0px;
  }

  .chart-navbar ul ul li:first-child label {
    border-bottom: 0.5px solid #EDEDED;
  }

  /* Dropdown checkbox styling */
  .chart-form-group {
    display: block;
  }

  .chart-form-group input {
    padding: 0;
    height: initial;
    width: initial;
    margin-bottom: 0;
    display: none;
    cursor: pointer;
  }

  .chart-form-group label {
    position: relative;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--purple);
    display: block;
    padding: 8px 10px;
    text-align: left;
  }

  .chart-form-group label:before {
    content: '';
    -webkit-appearance: none;
    background-color: transparent;
    border: 1px solid #C5C5C5;
    padding: 4px;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 1px;
  }

  .chart-form-group input:checked+label:after {
    content: '';
    display: block;
    position: absolute;
    top: 11px;
    left: 13px;
    width: 3px;
    height: 5px;
    border: solid var(--purple);
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
  }

  /* Mobile responsiveness */
  @media screen and (max-width: 575px) {
    .chart-navbar ul ul {
      left: 0;
      top: 100%;
    }

    .chart-navbar>li {
      border: 0.5px solid #EDEDED;
    }

    .chart-navbar>li:first-child {
      border-right: none;
      border-bottom: none;
    }

    .chart-navbar>li:last-child {
      border-top: 0.5px solid transparent;
      border-left: 0.5px solid transparent;
    }
  }

  @media screen and (min-width: 576px) and (max-width: 767px) {
    .chart-navbar>li {
      width: 100%;

    }

    .chart-navbar ul ul {
      left: 0;
      top: 100%;
    }

    .chart-navbar li ul {
      width: 127px;
    }
  }
  .chart-form-group.no-checkbox label:before {
    display: none;
  }

  .chart-form-group.no-checkbox input:checked+label:after {
    content: none;
  }

  .chart-form-group.no-checkbox.is-checked {
    background-color: #F5F5F5;
  }

  /* chart-navbar css ends here */
  /* themes */
  /* Dropdown CSS for Sentiment Distribution */
  .custom-navbar {
    width: 100%;
    height: 51px;
  }

  .custom-navbar>li {
    width: 220px;
  }

  .custom-navbar>li.active {
    background: var(--purple);
  }

  .custom-navbar>li.active>a {
    color: var(--cruxx-white);
  }

  .custom-navbar>li.active>a svg {
    fill: var(--cruxx-white);
  }

  .custom-navbar>li:hover {
    background: var(--cruxx-bg-light);
  }

  .custom-navbar>li.active:hover>a {
    background: var(--purple);
    color: var(--cruxx-white);
  }

  .custom-navbar>li.active a svg {
    fill: var(--purple);
  }

  .custom-navbar li {
    float: left;
    position: relative;
    list-style: none;
    text-align: left;
    background: var(--cruxx-white);
    transition: all 0.3s ease-in-out;
  }

  .custom-navbar li>a {
    border: 0.5px solid #EDEDED;
  }

  .custom-navbar>li:first-child a {
    border-left: 0.5px solid #EDEDED;
  }

  .custom-navbar>li a {
    border-left: none;
  }

  .custom-navbar li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--purple);
    font-size: 11px;
    font-weight: 700;
    position: relative;
    min-height: 75.5px;
    line-height: 2;
  }

  .custom-navbar li a b {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .custom-navbar li a span {
    font-size: 9px;
    color: var(--cruxx-text-light);
    margin-bottom: 5px;
    font-weight: 600;
  }

  .custom-navbar li svg {
    text-align: right;
    position: absolute;
    right: 14px;
    bottom: 25px;
    fill: var(--purple);
  }

  .custom-navbar li ul {
    display: none;
    width: 100%;
    background: #fff;
    margin-top: 0px;
  }

  .custom-navbar>li>ul {
    padding-top: 8px;
  }

  .custom-navbar li ul a {
    font-size: 9px;
    font-weight: 500;
  }

  .custom-navbar li:hover li {
    background-color: var(--cruxx-white);
    float: none;
  }

  .custom-navbar li:hover li:hover {
    background: var(--cruxx-bg-light);
  }

  .custom-navbar li:hover>ul {
    display: block;
    position: absolute;
    z-index: 1;
  }

  .custom-navbar li ul li {
    border: none;
  }

  .custom-navbar ul ul {
    left: 100%;
    top: 0px;
  }

  .custom-navbar ul ul li:first-child label {
    border-bottom: 0.5px solid #EDEDED;
  }

  /* Dropdown checkbox styling */
  .custom-form-group {
    display: block;
  }

  .custom-form-group input {
    padding: 0;
    height: initial;
    width: initial;
    margin-bottom: 0;
    display: none;
    cursor: pointer;
  }

  .custom-form-group label {
    position: relative;
    cursor: pointer;
    font-size: 9px;
    font-weight: 500;
    color: var(--purple);
    display: block;
    padding: 8px 10px;
    text-align: left;
  }

  .custom-form-group label:before {
    content: '';
    -webkit-appearance: none;
    background-color: transparent;
    border: 1px solid #C5C5C5;
    padding: 4px;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 1px;
  }

  .custom-form-group input:checked+label:after {
    content: '';
    display: block;
    position: absolute;
    top: 11px;
    left: 13px;
    width: 3px;
    height: 5px;
    border: solid var(--purple);
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
  }

  /* Mobile responsiveness */
  @media screen and (max-width: 575px) {
    .custom-navbar ul ul {
      left: 0;
      top: 100%;
    }

    .custom-navbar>li {
      border: 0.5px solid #EDEDED;
    }

    .custom-navbar>li:first-child {
      border-right: none;
      border-bottom: none;
    }

    .custom-navbar>li:last-child {
      border-top: 0.5px solid transparent;
      border-left: 0.5px solid transparent;
    }
  }

  @media screen and (min-width: 576px) and (max-width: 767px) {
    .custom-navbar>li {
      width: 25%;
    }

    .custom-navbar ul ul {
      left: 0;
      top: 100%;
    }

    .custom-navbar li ul {
      width: 127px;
    }
  }


  /* new date filter  */

  /* Specific CSS for dropdown items to turn purple when active */
  .filter-navbar li.active,
  .filter-navbar li.active a {
    background: var(--purple);
    color: var(--cruxx-white); 
  }

  .filter-navbar li.active svg {
    fill: var(--cruxx-white); 
  }


  .active-bg {
    background-color: var(--purple);
    color: var(--cruxx-white);
  }

  .filter-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
  }

  .date-filter,
  .city-state-dropdown,
  .filter-navbar > li {
    flex: 0 0 auto !important;
    width: 220px !important;
    max-width: 220px !important;
    min-width: 220px !important;
  }

  @media (max-width: 768px) {
    .date-filter,
    .city-state-dropdown,
    .filter-navbar > li {
      width: 180px !important;
      max-width: 180px !important;
      min-width: 180px !important;
    }
  }

  @media (max-width: 576px) {
    .date-filter,
    .city-state-dropdown,
    .filter-navbar > li {
      width: 150px !important;
      max-width: 150px !important;
      /* min-width: 150px !important; */
    }
  }

  .filter-container::-webkit-scrollbar {
    height: 6px !important;
  }

  .filter-container::-webkit-scrollbar-thumb {
    background-color: rgba(81, 0, 94, 0.3) !important;
    border-radius: 4px !important;
  }

  .filter-container::-webkit-scrollbar-track {
    background-color: #f1f1f1 !important;
  }
  /* Highlight selected dropdown */
  .selected-option {
    background-color: #51005E1A !important;
  /* background-image: linear-gradient(to top, #51005e1a, #754a8a1a, #9c85b41a, #cac1db1a, #ffffff1a)!important; */
    color: var(--purple) !important;
    box-shadow: inset 0px -2px 0px 0px #51005E !important;
  }

  .selected-option>a {
    color: var(--purple) !important;
  }

  .selected-option>a>svg {
    fill: var(--purple) !important;
  }

  .filter-navbar li.selected-option>a>span {
    color: var(--purple) !important;
  }

  .chart-navbar>li.selected-option>a>span {
    color: var(--purple);
  }

  .selected-option>a>span {
    color: var(--purple) !important;
  }

  .selected-option .clear-breakdown,
  .selected-option #attribute-all-trigger,
  .selected-option #trends-attribute-breakdown {
    color: var(--purple);
  }

  .group-title {
    position: relative;
  }

  .group-title label {
    cursor: pointer;
  }
  .group-title input {
      padding: 0;
      height: initial;
      width: initial;
      margin-bottom: 0;
      display: none;
      cursor: pointer;
  }

  .group-title label:before {
    content: '';
    color: #51005E;
    font-size: 12px;
    margin-right: 5px;
    -webkit-appearance: none;
    background-color: transparent;
    border: 1px solid #C5C5C5;
    padding: 4px;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 1px;
    margin-bottom: 0.15rem;
  }

  .group-title input:checked+label:after {
    content: '';
    display: block;
    position: absolute;
    /*color: #51005E;*/
    font-size: 12px;
    margin-right: 5px;
    top: 6px;
    left: 12px;
    width: 3px;
    height: 5px;
    /*border: solid var(--purple);*/
    border: solid #ffffff;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
  }

  .group-title input:checked+label:before {
      background-color: #51005E;
      border-color: #51005E;
  }

.filter-navbar li.menu-pinned > ul {
  display: block !important;
  pointer-events: auto;
  z-index: 2;
}
