
.right-side-panel {
    position: fixed !important;
    /* top: 0;  */
    right: 0;
    max-width: 90vw;
    width: 400px; 
    height: 93vh;
    background: #ffffff !important;
    border-left: 1px solid #e9ecef;
    z-index: 1050;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
}
.right-side-panel::-webkit-scrollbar {
  width: 6px; 
  height: 10px;
}

.right-side-panel::-webkit-scrollbar-track {
  background: transparent;
}

.right-side-panel::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}


.right-side-panel.open {
    right: 0;
    z-index: 1200;
    /* Slide in from right edge when open */
    visibility: visible;
    /* Make it visible */
    opacity: 1;
    /* Make it fully opaque */
    background-color: var(--color-white);
}

.panel-overlay {
  /* position: fixed; */
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(0, 0, 0, 0.5); */
  z-index: 1049;
  display: none;
  /* Hidden by default */
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.panel-overlay.show {
  display: block;
  opacity: 1;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
  
}

.panel-feature-icons {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.panel-icon-item {
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  position: relative;
}

.panel-icon-item:hover {
  background: #e9ecef;
}

.panel-icon-item.active {
  background: #f1f1f1;
  border-bottom: 2px solid var(--color-primary-dark);
  color: var(--color-white);
}

/* .panel-icon-item.active svg path {
  fill: var(--color-primary-light);
  stroke: var(--color-primary-light);
} */

.panel-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.panel-close-btn:hover {
  background: #e9ecef;
}

.panel-content h4 {
    color: var(--color-gray-500);
    font-size: 18px;
    font-weight: 700;
}

/* .panel-content p {
  color: #666;
} */

.history-list {
  margin-top: 15px;
}

.shortcuts-list {
  margin: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.history-item,
.stat-item {
  padding: 12px 16px;
  border-radius: 4px;
}

.setting-item {
  padding: 12px 16px;
  border-radius: 4px;
}

.tone-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.tone-btn {
  padding: 8px 16px;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tone-btn:hover {
  background: #f8f9fa;
  border-color: #007bff;
}

.tone-tab-container{
  display: flex;
  flex-direction: row;
  gap: 4px;
  margin-bottom: 10px;
}

.tone-tab-original {
  display: flex;
  padding: var(--05, 2px) 8px;
  justify-content: center;
  align-items: center;
  gap: var(--05, 2px);
  border-radius: var(--rounded-md, 6px);
  background: var(--color-blue-500);
}

.tone-tab-original , .tone-tab-paraphrased{
  color: var(--Humanize-Tropical-Blue-tropical-blue-900, #595A64);
  text-align: center;
  font-family: Satoshi;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; 
}

.tone-tab-paraphrased {
  display: flex;
  padding: var(--05, 2px) 8px;
  justify-content: center;
  align-items: center;
  gap: var(--05, 2px);
  border-radius: var(--rounded-md, 6px);
  background: var(--Humanize-Dark-Blue-Dark-blue-50, #EBF6FA);
  color: var(--color-primary-light);
}


.shortcut-desc {
  color: #666;
}

/* Responsive design */
@media (max-width: 990px) {
  .right-side-panel {
    width: 100vw;
    /* Full width on mobile */
    right: -100vw;
    /* Completely off-screen */
    max-width: none;
  }

  .right-side-panel.open {
    right: 0;
    /* Slide in from right */
  }
}

.feature-title {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--Humanize-Grey-grey-100, #D3D3D3);
  align-items: center;
  padding: 16px;
}

.history-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-right: 5px;
}

.delete-icon:hover {
  background-color: var(--color-gray-100);
  padding: 3px 4px;
  border-radius: 6px;
}

.history-item:hover {
  background-color: #f1f1f1;
  cursor: pointer;
}

.history-time {
  color: #676767;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  height: 26px;
  justify-content: space-between;
}

.history-paragraph p {
  color: #676767;
  font-size: 12px;
}

.original-text-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.original-text p {
  color: var(--color-text-505050);
  font-size: 12px;
}

.original-text-container .original-text {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--Humanize-Grey-grey-100, #D3D3D3);
  background: var(--Humanize-Tropical-Blue-tropical-blue-50, #FBFBFD);
}

.setting-item input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 0.5px solid #a0a0a0;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  background-color: #f1f1f1;
  vertical-align: middle;
}

.setting-item input[type="checkbox"]:checked {
  background-color: var(--color-primary-light);
}

.setting-item input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 6px;
  width: 4px;
  height: 9px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.setting-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: sans-serif;
}

.settings-title {
  border-bottom: 1px solid #f1f1f1;
  padding: 12px 16px;
  color: #676767;
  font-weight: 700;
  font-size: 16px;
}
.setting-tile {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.setting-info {
  display: flex;
  flex-direction: column;
}

.setting-title {
  font-size: 1.7rem;
  font-weight: 400;
  color: #555;
  line-height: 1.1;
  margin-bottom: 0.15em;
}

.setting-desc {
  font-size: 1.2rem;
  color: #bbb;
  font-weight: 400;
  margin-top: 0;
  line-height: 1.2;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  margin-left: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ddd;
  transition: .4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.switch input:checked + .slider {
  background-color: var(--color-primary-light);
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.switch-container .label-text{
  color: var(--color-text-505050);
  font-family: Satoshi;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; 
}

.label-text-container{
  display: flex;
  flex-direction: column;
}

.label-sub-text{
  color: #686565f2;
  font-family: Satoshi;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; 
}

.switch-container{
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  margin: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-content p:first-child {
  font-weight: bold;
  margin-bottom: 10px;
}

.modal-content p:last-of-type {
  margin-bottom: 20px;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cancel-btn,
.delete-btn {
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
}

.cancel-btn {
  color: var(--color-primary-light);
  background-color: var(--color-white);
}

.cancel-btn:hover {
  color: var(--color-primary-dark);
}

.delete-btn {
  background-color: #F74545;
  color: var(--color-white);
}

.delete-btn:hover {
  background-color: var(--color-primary-dark);
}

.delete-all-icon:hover svg path {
  fill: var(--color-white) !important;
  stroke: var(--color-white) !important;
}

.delete-all-icon:hover {
  color: var(--color-primary-dark) !important;
  cursor: pointer;
  background-color: var(--color-primary-light);
  padding: 4px 6px;
  border-radius: 8px;
}

.delete-all-text:hover {
  color: var(--color-white) !important;
}

.delete-history-button {
  height: 28px;
  gap: 6px;
  padding-top: 5px;
  padding-right: 10px;
  padding-bottom: 5px;
  padding-left: 10px;
  border-radius: 4px;
  flex-direction: row;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: Satoshi;
  font-weight: 700;
  font-size: 12px;
  line-height: 150%;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #505050;
}

.delete-history-button.disabled {
  color: #BEBEBE;
}

.delete-history-button svg path {
  fill: #505050 !important;
  stroke: #505050 !important;
}

.delete-history-button.disabled svg path {
  fill: #BEBEBE !important;
  stroke: #BEBEBE !important;
}

.delete-history-button:hover {
  background-color: var(--color-primary-light);
  color: var(--color-white);
}

.delete-history-button.disabled:hover {
  cursor: not-allowed;
  background-color: transparent;
  color: #BEBEBE;
}

.delete-history-button:hover svg path {
  fill: var(--color-white) !important;
  stroke: var(--color-white) !important;
}

.delete-history-button.disabled:hover svg path {
  cursor: not-allowed;
  fill: #BEBEBE !important;
  stroke: #BEBEBE !important;
}

.history-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.loader-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.stats-table {
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    width: 100%;
    border-radius: 8px;
    gap: 10px;
    border-collapse: collapse;
}

.stats-row{
  border-radius: 5px;
  border: 1px solid var(--Humanize-Grey-grey-50, #F1F1F1);
  display: flex;
  flex-direction: row;
  padding: 16px;
  align-items: center;
  justify-content: space-between;
}

.single-value {
  display: flex;
  align-items: center;
}

.stats-type{
  color: var(--Humanize-Grey-grey-800, #3E3E3E);
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; 
  border-radius: var(--rounded-md, 6px);
  background: var(--Humanize-Grey-grey-50, #F1F1F1);
  padding: 0.5px 8px;
  display: flex;
  padding: var(--05, 2px) 8px;
  justify-content: center;
  align-items: center;
  gap: var(--05, 2px);
}

.from-to{
  display: flex;
  flex-direction: row;
  padding: 0.5px 20px;
  width: 50%;
  justify-content: start;
}

.stats-row .single{
  display: flex;
  flex-direction: row;
  padding: 0.5px 20px;
  width: 50%;
  justify-content: center;
}

.from-to-wrapper{
    display: flex;
  flex-direction: column;
}

.arrow{
  padding: 0px 12px;
  align-self: center;
}

.from-to-text{
  color: var(--Humanize-Grey-grey-300, #A0A0A0);
  font-family: Satoshi;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 15px */
}

.stats-container{
  padding: 12px 0px;
}

.from , .to, .single-value {
  color: var(--Humanize-Vibrant-blue-vb-500, #265BAA);
  font-family: Satoshi;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%; /* 21px */
}

.stats-section h5 {
  color: #676767;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 0px 16px 16px;
}

.stats-section-fluency, .stats-section-difference{
  margin-top: 6px;
  height: 2vh;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.stats-section-fluency svg{
margin-left: 4px;
}

.tone-analysis-container {
  padding: 16px;
}

.tone-metric {
  border: 1px solid var(--border-color);
  padding: 16px;
  margin-bottom: 8px;
  border-radius: 5px;
}

.tone-metric-label {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  color: var(--color-gray-900);
  font-family: Satoshi;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
}

.tone-container-wrapper {
  border-radius: 5px;
}

.tone-range-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tone-range-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tone-range-label {
  font-size: 12px;
  color: #757682;
  min-width: 80px;
  font-weight: 500;
}

.tone-range-bar-orignal {
  flex: 1;
  height: 8px;
  background-color: #DFE9ED;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.tone-range-bar-paraphrased{
  flex: 1;
  height: 8px;
  background-color: #EBF6FA;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.tone-range-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.tone-range-fill.original {
  background-color: var(--color-dark-blue-500);
}

.tone-range-fill.paraphrased {
  background-color: var(--color-primary-light);
}

.tone-range-value {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  min-width: 24px;
  text-align: right;
}

.tone-loading {
  padding: 32px 16px;
  text-align: center;
  color: #757682;
}

.tone-loading p {
  margin: 0;
  font-size: 14px;
}

.legend-wrapper {
  display: flex;
  gap: 10px;
  padding: 0px 0px 20px 0px;
}

.original-bullet {
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background-color: var(--color-dark-blue-500);
}
.paraphrased-bullet {
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background-color: var(--color-primary-light);
}

#history-items-container{
    display: flex;
    flex-direction: column;
    height: 70vh;
    position: relative;
}

.original-legend {
  display: flex;
  align-items: center;
  gap: 4px;
}

.paraphrased-legend {
  display: flex;
  align-items: center;
  gap: 4px;
}

.original-legend-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-gray-500);
}

.paraphrased-legend-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-gray-500);
}


.compare-container {
  display: flex;
  flex-direction: column;
  padding: 10px;
  padding-top: 20px;
}

.original-text-container,
.paraphrased-text-container {
  margin-bottom: 16px;
}

.original-text-container span,
.paraphrased-text-container span, .rephrased-heading {
  display: block;
  margin-bottom: 8px;
  color: var(--Humanize-Tropical-Blue-tropical-blue-900, #595A64);
  font-size: 14px;
}

.original-text,
.paraphrased-text {
  border-radius: 4px;
  max-height: 300px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.5;
}

.mode-selection {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.mode-options {
  display: flex;
  /* flex-wrap: wrap; */
  gap: 8px;
  overflow-x: scroll;
}

.mode-btn {
  border: none;
}

.paraphrase-version {
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  /* border-left: 4px solid #3E63DD; */
}

.paraphrase-version:hover {
  background-color: var(--color-primary-ultra-light);
  cursor: pointer;
}

.version-header {
  font-weight: 600;
  color: #3e63dd;
  margin-bottom: 8px;
  font-size: 14px;
}

.version-content {
  line-height: 1.5;
  color: #333;
}

/* Ensure spans within the content don't create line breaks */
.version-content span {
  display: inline;
}

.paraphrase-version {
  position: relative;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.click-to-replace {
  cursor: pointer;
  z-index: 10000;
}

.click-to-replace:hover {
  background-color: #f8f9fa;
}

.version-content {
  pointer-events: none; /* Prevent text selection from interfering with clicks */
}

.mode-options-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border-bottom: 1px solid var(--Humanize-Grey-grey-50, #F1F1F1);
}

.mode-options {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex: 1;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.mode-options::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.scroll-arrow {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #757682;
  padding: 4px 8px;
}

.scroll-arrow:hover {
  color: #333;
}

#panelCloseBtn{
      padding-bottom: 10px;
}

.right-panel-empty{
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 70vh;
  justify-content: center;
}

@media (max-width: 990px) {
  .right-panel-empty{
    height: 50vh;
  }
    .item-shortcut{
    display: none;
  }
}

.item-text{
  color: var(--color-gray-900);
  text-align: center;
  font-family: Satoshi;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
}

@media (min-width: 990px) {
  .additional-features svg {
    display: block;
    /* width: 1.2em; */
    height: 1.2em;
    margin: 0 auto;
  }
  .shortcut-item-svg{
    scale: 1.2;
  }
}

.shortcut-key, .shortcut-desc{
font-family: Satoshi;
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 150%;
}
.shortcut-desc{
  color: var(--color-text-505050);
}


.shortcuts-list {
  margin: 10px 16px;
  border: 1px solid var(--border-color, #D3D3D3);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.shortcuts-list table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 8px;
  font-family: inherit;
}

.shortcuts-list th {
  background: #f6f7fb;
  color: #62646a;
  font-weight: 600;
  text-align: left;
  padding: 16px;
  font-size: 16px;
  border-bottom: 2px solid #e6e7eb;
}

.shortcuts-list td {
  font-size: 18px;
  color: #222;
  padding: 20px 16px;
  border-bottom: 1px solid #e6e7eb;
  vertical-align: middle;
}

.shortcuts-list tr:last-child td {
  border-bottom: none;
}

.shortcut-item-action, .shortcut-item-hotkey {
  width: 50%;
}
.shortcut-item .shortcut-item-1{
  color: var(--color-gray-900);
  font-family: Satoshi;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%; /* 18px */
}


  .slide-text-container-synonyms {
    display: flex;
    flex-direction: column;
    margin: 0px 12px;
  }
  .slide-lable-synonyms {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .slide-lable-synonyms h3 {
    color: var(--color-text-505050);
    font-family: Satoshi;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%; /* 18px */
  }
  .slide-info-synonyms p {
    color: var(--Humanize-Grey-grey-400, #8d8d8d);
    font-family: Satoshi;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 15px */
  }
  /* wrapper and hidden native scrollbar */
.mode-options-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.mode-options {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex: 1;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.mode-options::-webkit-scrollbar {
  display: none;
}

/* **use a real '>' selector here** */
.mode-options-wrapper > svg {
  cursor: pointer;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  fill: #8D8D8D;
  transition: fill 0.2s, transform 0.2s;
}
.mode-options-wrapper > svg:hover {
  fill: #333;
  transform: scale(1.1);
}
.mode-options-wrapper > svg:active {
  transform: scale(0.9);
}

.feature-title.compare{
  display: flex;
  flex-direction: column;
  align-items: start;
}

.feature-title p{
  font-size: 12px;
  font-weight: 400;
}
.feature-title h4{
  margin-bottom: 5px;
}

.right-side-panel .panel-content{
  margin-bottom: 30px;
}

.right-panel-history-title {
  flex: 1;
  align-items: center;
  justify-content: start;
  display: flex;
  gap: 10px;
}

.right-panel-heading {
  width: 100%;
  min-height: 58px;
  gap: 12px;
  max-height: 108px;
  padding-top: 16px;
  padding-right: 6px;
  padding-bottom: 16px;
  padding-left: 16px;
  align-items: center;
  flex-direction: column;
  display: flex;
  justify-content: space-between;
  align-items: start;
  border-bottom: 1px solid #D3D3D3;
  font-family: Satoshi;
  font-weight: 700;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 0%;
  vertical-align: middle;
  color: var(--color-gray-500);
}

.right-panel-title-row {
  width: 100%;
  /* height: 60px; */
  display: flex;
  flex-direction: row;
}

.history-subtitle-row {
  height: 36px;
  gap: 10px;
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
}

.history-subtitle-text {
  font-family: Satoshi;
  font-weight: 400;
  font-size: 12px;
  line-height: 150%;
  letter-spacing: 0%;
  vertical-align: middle;
  color: var(--color-gray-900);
}

.history-switch {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 16px;
}

.history-switch input {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.history-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ddd;
  border-radius: 20px;
  transition: .4s;
}

.history-slider:before {
  content: "";
  position: absolute;
  height: 10px;
  width: 10px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: .4s;
}

input:checked+.history-slider {
  background-color: var(--color-primary-light);
}

input:checked+.history-slider:before {
  transform: translateX(12px);
}