/* =========================================
   SETTINGS PAGE STYLES
   ========================================= */

.settings-main {
  padding: 4rem 1rem;
  min-height: 60vh;
}

/* Settings Header */
.settings-header {
  text-align: center;
  margin-bottom: 3rem;
}

.settings-title {
  font-family: 'Sora', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #f9fafb;
  margin: 0 0 0.75rem;
}

.settings-subtitle {
  font-size: 1.1rem;
  color: rgba(248, 250, 252, 0.7);
  margin: 0;
}

/* Settings Section */
.settings-section {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.settings-section-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #f9fafb;
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

/* Setting Item */
.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  gap: 2rem;
}

.setting-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.setting-item:first-child {
  padding-top: 0;
}

.setting-info {
  flex: 1;
}

.setting-label {
  font-size: 1rem;
  font-weight: 600;
  color: #f9fafb;
  margin-bottom: 0.25rem;
}

.setting-description {
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.6);
  line-height: 1.5;
}

.setting-control {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 30px;
  flex-shrink: 0;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(148, 163, 184, 0.3);
  transition: 0.3s;
  border-radius: 30px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.toggle-switch input:focus + .toggle-slider {
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

/* Slider (Range Input) */
.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 180px;
  height: 6px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.3);
  outline: none;
  transition: background 0.2s;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ea580c);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
  transition: all 0.2s;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.6);
}

.slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ea580c);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
  transition: all 0.2s;
}

.slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.6);
}

.slider-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f97316;
  min-width: 45px;
}

/* Select Dropdown */
.setting-select {
  padding: 0.6rem 1rem;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.5rem;
  color: #f9fafb;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 150px;
}

.setting-select:hover {
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(30, 41, 59, 1);
}

.setting-select:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Setting Button */
.setting-button {
  padding: 0.6rem 1.5rem;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 0.5rem;
  color: #f9fafb;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.setting-button:hover {
  background: rgba(148, 163, 184, 0.2);
  border-color: #f97316;
  color: #f97316;
}

.setting-button.is-danger {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
  color: #ef4444;
}

.setting-button.is-danger:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: #dc2626;
  color: #dc2626;
}

/* Danger Zone */
.danger-zone {
  border-color: rgba(220, 38, 38, 0.3);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
}

.danger-zone .settings-section-title {
  color: #ef4444;
  border-bottom-color: rgba(220, 38, 38, 0.3);
}

/* Settings Actions */
.settings-actions {
  text-align: center;
  margin-top: 3rem;
}

.save-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  color: #10b981;
  font-size: 0.9rem;
  font-weight: 500;
}

.save-icon {
  font-size: 1.2rem;
}

.save-status.is-saving {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

.save-status.is-error {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
  color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
  .settings-main {
    padding: 3rem 1rem;
  }
  
  .settings-title {
    font-size: 2rem;
  }
  
  .settings-section {
    padding: 1.5rem 1rem;
  }
  
  .setting-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .setting-control {
    width: 100%;
    justify-content: space-between;
  }
  
  .slider {
    flex: 1;
    min-width: 120px;
  }
  
  .setting-select {
    width: 100%;
  }
  
  .setting-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .settings-title {
    font-size: 1.75rem;
  }
  
  .settings-subtitle {
    font-size: 1rem;
  }
  
  .settings-section {
    padding: 1.25rem 0.75rem;
  }
  
  .settings-section-title {
    font-size: 1.1rem;
  }
  
  .setting-label {
    font-size: 0.95rem;
  }
  
  .setting-description {
    font-size: 0.8rem;
  }
}




