@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');

@import 'base/reset.css';
@import 'base/typography.css';
@import 'base/utilities.css';
@import 'base/variables.css';
@import 'components/buttons.css';
@import 'components/select2.css';
@import 'components/table.css';
@import 'layout/footer.css';
.toggle-switch {
  position: relative;
  border-radius: 18px;
  transform: translate(0%, 10%);
  width: 54px;
  height: 20px;
  flex-shrink: 0;
}

.toggle-switch input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  opacity: 0;
  z-index: 1;
}

.toggle-switch div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: 10px;
  border-radius: 4px;
  background: #e0e0e0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.toggle-switch input:checked + div {
  background: var(--first-color);
}

.toggle-switch div .toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 20px;
  background: #c4c4c4;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + div .toggle-slider {
  transform: translateX(44px);
  background: #fff;
}

.toggle-switch input[disabled] + div {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(60%);
  pointer-events: none;
}

.toggle-switch input[disabled] + div .toggle-slider {
  background-color: #ccc;
  box-shadow: none;
}

.toggle-switch .toggle-slider::before {
  content: 'ATIVO';
  position: absolute;
  top: 0;
  left: -48px;
  text-align: center;
  text-indent: 8px;
  width: 48px;
  height: 100%;
  line-height: 19px;
  background: var(--first-color);
  font-weight: bold;
  color: #fff;
  transition: opacity 0.3s ease;
}

.toggle-switch .toggle-slider::after {
  content: 'INATIVO';
  position: absolute;
  top: 0;
  right: -48px;
  text-align: center;
  text-indent: -8px;
  width: 48px;
  height: 100%;
  line-height: 19px;
  background: rgba(255, 255, 255, 0.5);
  font-weight: bold;
  color: #000;
  transition: opacity 0.3s ease;
}

/* Ícones dos headers dos cards */
.card-header .bi {
  color: var(--first-color);
  font-size: 1.1rem;
}

/* Labels com ícones */
.form-label .bi {
  color: var(--first-color);
  opacity: 0.8;
}

/* Espaçamento dos cards */
.modal-body .row > .col-12 {
  margin-bottom: 0;
}

.modal-body .row > .col-12:last-child .card {
  margin-bottom: 0;
}
