/* =========================================================
   SETTINGS PAGE UI – POLISHED
   Fully styled inputs, dropdowns, buttons
   Matches main style.css design language
========================================================= */

.settings-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 0 60px;
}

.settings-header {
  margin-bottom: 36px;
}

.settings-header h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.settings-header p {
  color: #9a9a9a;
  font-size: 0.95rem;
}

/* ============================
   SECTION CARDS
============================ */

.settings-section {
  background: linear-gradient(180deg, #1c1c1c, #141414);
  border-radius: 18px;
  padding: 26px 28px;
  margin-bottom: 26px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.55);
}

.settings-section h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.settings-section-description {
  font-size: 0.85rem;
  color: #8b8b8b;
  margin-bottom: 22px;
}

/* ============================
   ROW LAYOUT
============================ */

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

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

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

.setting-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.setting-subtitle {
  font-size: 0.8rem;
  color: #8a8a8a;
}

/* ============================
   TOGGLE SWITCH (REFINED)
============================ */

.setting-toggle {
  position: relative;
  width: 52px;
  height: 28px;
}

.setting-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #2c2c2c;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  top: 3px;
  background: #9b9b9b;
  border-radius: 50%;
  transition: transform 0.25s ease, background 0.25s ease;
}

.setting-toggle input:checked + .toggle-slider {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.setting-toggle input:checked + .toggle-slider::before {
  transform: translateX(24px);
  background: #fff;
}

/* ============================
   TEXT INPUTS
============================ */

.setting-input {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.9rem;
  width: 240px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.setting-input::placeholder {
  color: #777;
}

.setting-input:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124,58,237,0.25);
}

/* ============================
   DROPDOWNS
============================ */

.setting-select {
  appearance: none;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 10px 40px 10px 14px;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #aaa 50%),
    linear-gradient(135deg, #aaa 50%, transparent 50%),
    linear-gradient(to right, #1a1a1a, #1a1a1a);
  background-position:
    calc(100% - 18px) 16px,
    calc(100% - 12px) 16px,
    100% 0;
  background-size: 6px 6px, 6px 6px, 2.5em 2.5em;
  background-repeat: no-repeat;
}

.setting-select:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124,58,237,0.25);
}

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

.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 30px;
}

.settings-btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.settings-btn.primary {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  box-shadow: 0 6px 20px rgba(124,58,237,0.4);
}

.settings-btn.secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.settings-btn:hover {
  transform: scale(1.06);
}

/* ============================
   DANGER ZONE
============================ */

.settings-section.danger {
  border: 1px solid rgba(220,53,69,0.35);
  background: linear-gradient(180deg, #1b0f12, #12090c);
}

.settings-section.danger h2 {
  color: #dc3545;
}

.settings-btn.danger {
  background: rgba(220,53,69,0.9);
  color: #fff;
  box-shadow: 0 6px 20px rgba(220,53,69,0.35);
}

.settings-btn.danger:hover {
  background: rgba(255,0,0,1);
}

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

@media (max-width: 700px) {
  .setting-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .setting-input,
  .setting-select {
    width: 100%;
  }

  .settings-actions {
    justify-content: center;
  }
}
