body, p, h1, h2, h3, h4, h5, h6, span, a, li, ul, ol, blockquote, pre, code,
button, input, textarea, select, label, legend, optgroup, option, 
table, th, td, caption, figcaption, .btn {
  font-family: 'Quicksand', sans-serif !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.new-chart-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;
}

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

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

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

/* New Dropdown Options */
.new-chart-navbar li ul {
  display: none;
  width: 100%;
  background: #fff;
  margin-top: 0px;
}

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

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

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

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

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

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

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

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

/* New Dropdown Checkbox Styling */
.new-chart-form-group {
  display: block;
}

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

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

.new-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;
}

.new-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) {
  .new-chart-navbar ul ul {
    left: 0;
    top: 100%;
  }

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

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

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


.chart-form-group input {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
}

.search-keyword {
  font-size: 14px;
  color: #838383;
}

/* css for everything else */
#DownloadBtn {
  text-transform: none;
}

.cruxx-box2 {
  width: 100%;
  max-width: 220px;
  padding: 7px 15px;
  min-height: 80px;
  border-width: 1px;
  box-sizing: border-box;
}

.badge-search2 {
  margin-right: 8px;
  padding: 5px 10px;
  font-size: 12px;
  color: #727272;
  background-color: #51005E;
  border-radius: 8px;
  font-weight: 600;
}

.bg-white {
  background-color: white;
}

.feedback-border-pos {
  background-color: white;
  padding: 20px;
  border-left: 4px solid #28a745;
}

.feedback-border-neg {
  background-color: white;
  padding: 20px;
  border-left: 4px solid #F30808;
}

.feedback-border-neu {
  background-color: white;
  padding: 20px;
  border-left: 4px solid #FFA500;
  /* border-left: 4px solid #cfcfcf; */
}

.review-item {
  border-bottom: 1px solid #ededed;
}

.stats-section {
  margin-top: 20px;
  text-align: center;
}

/* Styling each stat box */
.stat-box {
  flex: 1;
  padding: 20px;
  font-size: 18px;
  font-weight: bold;
  color: white;
}

.stat-box.negative {
  background-color: #ff3b30;
}

/* Red for negative */
.stat-box.neutral {
  background-color: #ffa500;
}

/* Orange for neutral */
.stat-box.positive {
  background-color: #32cd32;
}

/* Green for positive */

/* Buttons styling */
.button-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn {
  /* border: 1px solid #007bff; */
  background-color: transparent;
  /* color: #007bff; */
  padding: 8px 16px;
  margin: 0 8px;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
}

.btn:hover {
  /* background-color: #007bff; */
  color: white;
}

.feedback-badge1 {
  margin-right: 8px;
  padding: 5px 10px;
  font-size: 12px;
  color: #727272;
  background-color: #9E9A9A33;
  border-radius: 5px;
}

.feedback-badge2 {
  margin-right: 8px;
  padding: 5px 10px;
  font-size: 12px;
  color: #727272;
  background-color: #ffffff33;
  border: 1px solid #9E9A9A33;
  border-radius: 5px;
}


/* css for calender */
/* Basic styling for dropdown and date picker */
.custom-dropdown {
  position: relative;
  display: inline-block;
}

.custom-toggle {
  cursor: pointer;
  color: #4c0053;
}

.custom-menu {
  display: none;
  position: absolute;
  background-color: #f9f3f9;
  padding: 0.5rem;
  border-radius: 0.3rem;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  list-style: none;
  margin: 0;
}

.custom-dropdown:hover .custom-menu {
  display: block;
}

/* Styling for date picker fields */


.date-input {
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 0.3rem;
  color: #4c0053;
  width: 8rem;
  text-align: center;
}

.date-input:focus {
  outline: none;
  border-color: #4c0053;
}


/* css for the content */

.feedback-badge {
  margin-right: 8px;
  padding: 5px 10px;
  font-size: 12px;
  color: #ff0000;
  background-color: #ff000033;

}

.review-content-feedback {
  background-color: white;
  padding: 20px;
  padding-top: 50px;
  padding-bottom: 50px;
}



/* css for keywords search */
.search-filter-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-input-wrapper {
  display: flex;
}

.search-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-input {
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  color: #aaa;
  flex-grow: 1;
}

.add-button {
  padding: 0.5rem 1rem;
  background-color: #660066;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

.tags-wrapper {
  display: flex;
  gap: 0.5rem;
}

.tags-display {
  display: flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  background-color: #660066;
  color: white;
  border-radius: 15px;
  font-size: 0.9rem;
}

.filter-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.apply-filters-button {
  padding: 0.7rem 1.5rem;
  background-color: #660066;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

.clear-filters-link {
  color: #aaa;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}


/* calendar css */




/* .group.selected {
  background-color: #51005E;
  color: white;
}

.group.selected .input-label {
  color: #d0b3d9;
}

.group.selected #calendar-range {
  color: white;
} */

/* Calendar Picker Container */


.custom-date-picker {
  height: 75.5px;
  width: 220px;
  padding: 10px;
  border: 0.5px solid #EDEDED;
  background-color: white;
  font-family: 'Quicksand', sans-serif !important;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.custom-label {
  font-size: 10px;
  color: #5e5e5e;
  margin-bottom: 2px;
  display: block;
  transition: color 0.3s ease;
  font-family: 'Quicksand', sans-serif !important;
}

.custom-date-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 11px;
  color: transparent;
  background: transparent;
  font-weight: bold;
  position: relative;
  z-index: 1;
}

.custom-date-input::placeholder {
  color: #51005E;
  font-weight: normal;
}

.custom-selected-range {
  position: absolute;
  top: 34px;
  left: 10px;
  font-size: 11px;
  font-weight: bold;
  color: #51005E;
/*  display: none;*/
  pointer-events: none; 
}

.custom-date-picker.selected .custom-selected-range {
  display: block;
}

.custom-date-picker.selected {
  background-color: #51005E1A;
/*  color: white;*/
  color: #51005E;
  box-shadow: inset 0px -1px 0px 0px #51005E !important;
}

.custom-date-picker.selected .custom-label,
.custom-date-picker.selected .custom-selected-range {
  color: white;
  color: #51005E;
}

/* Hover effect */
.custom-date-picker:hover {
  /* border-color: #51005E; */
}

/* Smooth transitions */
.custom-date-picker,
.custom-label,
.custom-date-input,
.custom-selected-range {
  transition: all 0.3s ease;
}

/* calendar styles */
.flatpickr-calendar {
  background-color: white !important;
  border: 1px solid #9300aa !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
  color: #51005E !important;
}

.flatpickr-day.selected {
  background-color: #51005E !important;
  color: white !important;
  border: 1px solid #51005E !important;
}

.flatpickr-day:hover {
  background-color: #EAE1F3 !important;
  color: #51005E !important;
  border: 1px solid #51005E !important;
}

.flatpickr-day.today {
  background-color: #51005E !important;
  color: white !important;
  font-weight: bold;
}

.flatpickr-day.disabled {
  color: #D3D3D3 !important;
}

.flatpickr-months .flatpickr-month {
  color: #51005E !important;
}

.flatpickr-weekdays .flatpickr-weekday {
  color: #51005E !important;
  font-weight: bold;
}

.flatpickr-current-month {
  color: #51005E !important;
  font-weight: bold;
}

.flatpickr-clear {
  color: #51005E !important;
  background-color: white !important;
  border: 1px solid #51005E !important;
  padding: 5px;
  border-radius: 3px;
}

.flatpickr-time {
  background-color: white !important;
  color: #51005E !important;
}

.flatpickr-time .flatpickr-hour,
.flatpickr-time .flatpickr-minute,
.flatpickr-time .flatpickr-second {
  color: #51005E !important;
}

.flatpickr-weeknumbers {
  background-color: white !important;
  color: #51005E !important;
  font-weight: bold;
}

.flatpickr-confirm {
  background-color: #51005E !important;
  color: white !important;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
}

.flatpickr-calendar .flatpickr-days .flatpickr-day.inRange {
  background-color: #EAE1F3 !important;
  color: #51005E !important;
}

.append-source {
  position: relative;
}

.chart-navbar li.cruxx-source-select-navbar:hover>ul {
    display: block!important;
    position: absolute!important;
    z-index: 4!important;
}


/* responsive changes */
@media (max-width: 575.98px) {
  .translate-container {
    flex-basis: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .translate-container {
    flex-basis: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .translate-container {
    flex-basis: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 575.98px) {
  .cruxx-box2 {
    max-width: 105px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .cruxx-box2 {
    max-width: 130px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .cruxx-box2 {
    max-width: 159px;
  }
}

@keyframes dots {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
}

.generating::after {
    content: "...";
    animation: dots 1.5s steps(3, end) infinite;
}
