body {
  font-family: "Be Vietnam Pro", sans-serif;
}

:root {
  --primary-50: #E0FAF3;
  --primary-100: #C6F6E8;
  --primary-200: #88ECD0;
  --primary-300: #4FE3B9;
  --primary-400: #20CA9A;
  --primary-500: #17916F;
  --primary-600: #127257;
  --primary-700: #0E5843;
  --primary-800: #09392C;
  --primary-900: #051F17;
  --primary-950: #020D0A;

  --secondary-50: #D4FCF1;
  --secondary-100: #ADFAE4;
  --secondary-200: #5BF5CA;
  --secondary-300: #0EE7AA;
  --secondary-400: #09956E;
  --secondary-500: #044432;
  --secondary-600: #033527;
  --secondary-700: #021D15;
  --secondary-800: #021D15;
  --secondary-900: #010E0B;
  --secondary-950: #000504;

  --black-50: #E8E8E8;
  --black-100: #D4D4D4;
  --black-200: #A6A6A6;
  --black-300: #7A7A7A;
  --black-400: #4D4D4D;
  --black-500: #212121;
  --black-600: #1A1A1A;
  --black-700: #141414;
  --black-800: #0D0D0D;
  --black-900: #080808;
  --black-950: #030303;

  --gray-50: #EAEFEE;
  /* bg tabela dashboard */

  --background-50: #FCFCFC;
  --background-100: #FCFCFC;
  --background-200: #FAFAFA;
  --background-300: #F7F7F7;
  --background-400: #F5F5F5;
  --background-500: #F2F2F2;
  --background-600: #C2C2C2;
  --background-700: #919191;
  --background-800: #616161;
  --background-900: #303030;
  --background-950: #171717;
}

.switch-container {
  position: relative;
  display: inline-block;
  width: 43px;
  height: 25px;
}

.switch-input,
.switch-input2,
.switch-input3 {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-label,
.switch-label2,
.switch-label3 {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #d1d1d1;
  border-radius: 50px;
  transition: background-color 0.3s ease;
}

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

.switch-input2:checked+.switch-label2 {
  background-color: var(--primary-500);
}

.switch-input3:checked+.switch-label3 {
  background-color: var(--primary-500);
}

.switch-circle,
.switch-circle2,
.switch-circle3 {
  position: absolute;
  top: 50%;
  left: 4px;
  width: 16px;
  height: 16px;
  background-color: white;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: left 0.3s ease;
}

::-webkit-file-upload-button {
  cursor: pointer;
}

.switch-input:checked+.switch-label .switch-circle {
  left: 25px;
}

.switch-input2:checked+.switch-label2 .switch-circle2 {
  left: 25px;
}

.switch-input3:checked+.switch-label3 .switch-circle3 {
  left: 25px;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  background: var(--background-100);
  border: 1px solid var(--black-200);
  width: 18px;
  height: 18px;
  border-radius: 4px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  position: relative;
}

input[type="checkbox"]:checked {
  background: var(--primary-500);
  border-color: var(--primary-500);
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 7px;
  width: 4px;
  height: 8px;
  border: solid var(--background-100);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@keyframes switchBounce {
  0% {
    transform: translateY(-50%) scale(1);
  }

  25% {
    transform: translateY(-50%) scale(1.1);
  }

  50% {
    transform: translateY(-50%) scale(0.9);
  }

  75% {
    transform: translateY(-50%) scale(1.05);
  }

  100% {
    transform: translateY(-50%) scale(1);
  }
}

.switch-input:checked+.switch-label .switch-circle {
  animation: switchBounce 0.5s ease;
}

.switch-input2:checked+.switch-label2 .switch-circle2 {
  animation: switchBounce 0.5s ease;
}

/* Configuração base do switch */
.switch-container {
  position: relative;
  display: inline-block;
  width: 43px;
  height: 25px;
}

/* Esconde o checkbox nativo */
.switch-input,
.switch-input-automatic {
  opacity: 0;
  width: 0;
  height: 0;
}

/* === Switch NORMAL === */
.switch-label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #d1d1d1;
  border-radius: 50px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

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

.switch-circle {
  position: absolute;
  top: 50%;
  left: 4px;
  width: 16px;
  height: 16px;
  background-color: white;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: left 0.3s ease;
}

.switch-input:checked + .switch-label .switch-circle {
  left: 25px;
}

/* === Switch AUTOMÁTICO (Desabilitado, mas sempre ativado) === */
.switch-label-automatic {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #e0e0e0 !important; /* Fundo cinza claro */
  border-radius: 50px;
  cursor: not-allowed;
}

/* Mantém o switch ativado */
.switch-input-automatic:checked + .switch-label-automatic {
  background-color: #F3E8FF !important;
}

@layer base {
  input[type="number"]::-webkit-inner-spin-button,
  input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
}

/* Círculo branco, sempre na posição ativada */
.switch-circle-automatic {
  position: absolute;
  top: 50%;
  left: 25px;
  width: 16px;
  height: 16px;
  background-color: white !important;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);/
}

/* Remove interação */
.switch-input-automatic {
  pointer-events: none;
}

select {
  color: inherit;
  border: 1px solid var(--black-200);
  border-radius: 8px;
  background-color: var(--background-500);
  appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777777' width='16px' height='16px'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select:focus {
  outline: 2px solid var(--primary-500);
  box-shadow: 0 0 0 2px var(--primary-500);
}

option {
  font-size: 16px;
  color: inherit;
  background-color: white;
  transition: background-color 0.3s ease;
}

option:hover,
option:focus {
  background-color: var(--primary-500);
  color: white;
}

input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  border-radius: 8px;
}

input:focus {
  outline: 2px solid var(--primary-500);
  box-shadow: 0 0 0 2px var(--primary-500);
}

input.border-red-500:focus {
  outline: 2px solid red;
  box-shadow: 0 0 0 2px red;
}

textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  border-radius: 8px;
}

textarea:focus {
  outline: 2px solid var(--primary-500);
  box-shadow: 0 0 0 2px var(--primary-500);
}

textarea.border-red-500:focus {
  outline: 2px solid red;
  box-shadow: 0 0 0 2px red;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top: 2px solid var(--primary-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
}

.spinner-send {
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top: 2px solid var(--primary-500);
  text-align: center;
  width: 32px;
  height: 32px;
  margin-left: 0px;
  margin-top: 5px;
}

.tox-tinymce {
  resize: none !important;
  overflow: hidden !important;
}

.tox-statusbar__resize-handle {
  display: none !important;
}

.variation-radio {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.3);
  background-color: transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease-in-out;
}

.variation-radio.saved {
  background-color: #17916F !important;
  border: 1px solid #17916F !important;
}

.variation-radio.saved::before {
  content: "✔";
  color: white;
  font-size: 12px;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.variation-radio.checked-manual {
  background-color: black !important;
  border: 1px solid black !important;
}

.variation-radio.checked-manual::before {
  content: "✔";
  color: white;
  font-size: 12px;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

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

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

/* Remove o ícone de calendário padrão (Chrome, Edge, Safari) */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* Removendo aparência padrão */
input[type="date"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  color: var(--primary-500);
  border: 2px solid #e5e7eb; /* Cor cinza semelhante ao border-gray-200 */
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  font-size: 0.875rem; /* text-sm */
  font-weight: 500; /* font-medium */
  border-radius: 0.5rem; /* rounded */
  height: 2.25rem; /* h-9 */
}

input[type="date"]:not(:valid) {
  color: #9ca3af; /* text-gray-400 */
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-400);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

.container_modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: rgba(31, 41, 55, 0.5);
}

/* Modal Interno Responsivo */
.responsive_modal {
  background-color: white;
  width: 95%;
  max-width: 620px;
  max-height: 90vh;
  /* overflow-y: hidden; */
  overflow-x: hidden;
  padding-top: 1.75rem;
  padding-bottom: 1.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  border-radius: 0.375rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* #modal-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
} */
