/* =========================
   PAGE: SETTINGS LAYOUT
========================= */

.app-layout {
  width: 100%;
  max-width: 1300px;

  margin: 0 auto;

  padding-top: 120px;
  padding-left: 40px;
  padding-right: 40px;

  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
}

/* =========================
   SETTINGS MAIN
========================= */

.settings-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-main h1 {
  color: #2b2b2b;

  font-family: "Belleza", sans-serif;
  font-size: 46px;
  font-weight: 400;
}

/* =========================
   BACK BUTTON
========================= */

.back-btn {
  width: fit-content;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: #676F54;

  font-weight: 600;
  text-decoration: none;

  transition: 0.3s ease;
}

.back-btn:hover {
  color: #79B4A9;
  transform: translateX(-3px);
}

/* =========================
   SETTINGS CARD
========================= */

.settings-card {
  padding: 28px;

  background: #ffffff;

  border: 1px solid #ececec;
  border-radius: 24px;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.settings-card h2 {
  margin-bottom: 22px;

  color: #2b2b2b;

  font-size: 24px;
}

/* =========================
   SETTING ITEM
========================= */

.setting-item {
  display: flex;
  flex-direction: column;
  gap: 8px;

  margin-bottom: 20px;
}

.setting-item:last-child {
  margin-bottom: 0;
}

.setting-item label {
  color: #676F54;

  font-weight: 700;
}

.setting-item input,
.setting-item select {
  width: 100%;
  height: 48px;

  padding: 0 15px;

  background: #ffffff;

  border: 1px solid #dedede;
  border-radius: 14px;

  color: #2b2b2b;

  font-family: "Inter", sans-serif;
  font-size: 15px;

  outline: none;
  transition: 0.3s ease;
}

.setting-item input:focus,
.setting-item select:focus {
  border-color: #79B4A9;
  box-shadow: 0 0 0 4px rgba(121, 180, 169, 0.15);
}

/* =========================
   TOGGLES
========================= */

.setting-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 16px 0;

  border-bottom: 1px solid #eeeeee;
}

.setting-toggle:last-child {
  border-bottom: none;
}

.setting-toggle span {
  color: #2b2b2b;

  font-size: 16px;
  font-weight: 600;
}

.setting-toggle input[type="checkbox"] {
  position: relative;

  width: 46px;
  height: 24px;

  appearance: none;

  background: #dcdcdc;

  border-radius: 999px;

  cursor: pointer;
  transition: 0.3s ease;
}

.setting-toggle input[type="checkbox"]::before {
  content: "";

  position: absolute;
  top: 3px;
  left: 3px;

  width: 18px;
  height: 18px;

  background: #ffffff;

  border-radius: 50%;

  transition: 0.3s ease;
}

.setting-toggle input[type="checkbox"]:checked {
  background: #79B4A9;
}

.setting-toggle input[type="checkbox"]:checked::before {
  transform: translateX(22px);
}

/* =========================
   BUTTONS
========================= */

.action-btn,
.save-btn {
  padding: 12px 24px;

  border: none;
  border-radius: 999px;

  background: #79B4A9;
  color: #ffffff;

  font-size: 15px;
  font-weight: 700;

  cursor: pointer;
  transition: 0.3s ease;
}

.action-btn:hover,
.save-btn:hover {
  background: #676F54;
  transform: translateY(-2px);
}

.danger-zone {
  padding-top: 20px;

  border-top: 1px solid #f0d6d6;
}

.danger-btn {
  padding: 12px 24px;

  border: none;
  border-radius: 999px;

  background: #fff1f1;
  color: #b42318;

  font-size: 15px;
  font-weight: 700;

  cursor: pointer;
  transition: 0.3s ease;
}

.danger-btn:hover {
  background: #b42318;
  color: #ffffff;
}

.save-area {
  display: flex;
  justify-content: flex-end;

  margin-bottom: 40px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .app-layout {
    grid-template-columns: 1fr;

    padding-top: 150px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .sidebar-left {
    display: none;
  }

  .settings-main h1 {
    font-size: 38px;
  }
}

@media (max-width: 480px) {
  .settings-card {
    padding: 22px;
  }

  .setting-toggle {
    gap: 14px;
  }

  .save-area {
    justify-content: center;
  }

  .save-btn {
    width: 100%;
  }
}