.settings {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;

  &__header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
  }

  &__back {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #007bff;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;

    &:hover {
      background-color: rgba(0, 123, 255, 0.1);
    }

    &:focus {
      outline: none;
      background-color: rgba(0, 123, 255, 0.1);
    }
  }

  &__title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #333;
  }

  &__content {
    flex: 1;
  }

  &__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;

    &:last-child {
      border-bottom: none;
    }
  }

  &__label {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  &__labelText {
    font-size: 16px;
    font-weight: 500;
    color: #333;
  }

  &__labelDesc {
    font-size: 14px;
    color: #666;
  }

  // Темная тема
  &--dark {
    .settings__back {
      color: #007bff;

      &:hover {
        background-color: rgba(0, 123, 255, 0.2);
      }

      &:focus {
        background-color: rgba(0, 123, 255, 0.2);
      }
    }

    .settings__title {
      color: #fff;
    }

    .settings__item {
      border-bottom-color: #444;
    }

    .settings__labelText {
      color: #fff;
    }

    .settings__labelDesc {
      color: #ccc;
    }
  }
}

.switch {
  position: relative;
  width: 50px;
  height: 28px;
  background-color: #ccc;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;

  &:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
  }

  &__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  &--active {
    background-color: #007bff;

    .switch__thumb {
      transform: translateX(22px);
    }
  }
}
