/* Settings Page Styles */

.settings-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 60px;
}

.settings-header-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings-header h1 {
  font-size: 1.4rem;
  color: #fff;
  margin: 0;
  font-weight: 700;
  flex: 1;
  text-align: center;
}

.back-btn,
.profile-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.back-btn:hover,
.profile-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.settings-container {
  margin-top: 80px;
  padding: 20px 20px 80px 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  min-height: calc(100vh - 80px);
  overflow-y: auto;
}

/* Settings Section */
.settings-section {
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(30, 30, 30, 0.95));
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section-title svg {
  width: 24px;
  height: 24px;
}

/* Setting Item */
.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

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

.setting-item.clickable {
  cursor: pointer;
  transition: background 0.2s;
  padding: 16px;
  margin: 0 -16px;
  border-radius: 8px;
}

.setting-item.clickable:hover {
  background: rgba(255, 255, 255, 0.03);
}

.setting-info {
  flex: 1;
}

.setting-label {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.setting-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

.setting-value {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

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

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

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

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

.toggle input:checked + .toggle-slider {
  background: linear-gradient(45deg, var(--accent), var(--accent-2));
}

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

/* Setting Button */
.setting-button {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.setting-button:first-of-type {
  margin-top: 0;
}

.setting-button:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.setting-button.danger {
  background: rgba(255, 100, 100, 0.15);
  border-color: rgba(255, 100, 100, 0.5);
  color: #ff6464;
}

.setting-button.danger:hover {
  background: rgba(255, 100, 100, 0.25);
}

/* Danger Section */
.danger-section {
  border-color: rgba(255, 100, 100, 0.3);
}

.danger-section .section-title {
  color: #ff6464;
  border-bottom-color: rgba(255, 100, 100, 0.2);
}

.danger-warning {
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 100, 100, 0.1);
  border: 1px solid rgba(255, 100, 100, 0.3);
  border-radius: 8px;
  color: rgba(255, 100, 100, 0.9);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* App Info */
.app-info {
  background: transparent;
  border: none;
  padding: 0;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

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

.info-row a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.info-row a:hover {
  color: var(--accent);
}

.info-value {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Confirmation Modal */
.confirm-modal {
  max-width: 480px;
  text-align: center;
}

.confirm-modal h2 {
  color: var(--accent);
  margin-bottom: 16px;
  font-size: 1.6rem;
}

.confirm-modal p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  gap: 12px;
}

.btn-cancel,
.btn-confirm {
  flex: 1;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-2);
  color: #fff;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-confirm {
  background: linear-gradient(45deg, var(--accent), var(--accent-2));
  color: #fff;
}

.btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
}

.btn-confirm.danger {
  background: linear-gradient(45deg, #ff4444, #ff6666);
}

/* Responsive */
@media (max-width: 640px) {
  .settings-container {
    padding: 15px;
    margin-top: 70px;
  }

  .settings-section {
    padding: 20px 16px;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .setting-item.clickable {
    margin: 0 -12px;
    padding: 14px 12px;
  }

  .setting-label {
    font-size: 0.95rem;
  }

  .setting-description {
    font-size: 0.85rem;
  }
}
