/* ============================================
   SETTINGS VIEWS - iOS Matching Styles
   NotificationsView, PrivacySecurityView, HelpSupportView
   ============================================ */

.settings-sheet {
  z-index: 1060;
}

.settings-content {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

/* Navigation Bar */
.settings-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--brokerly-border-light);
  background: var(--brokerly-secondary-background);
}

.settings-nav .nav-cancel {
  font-size: 16px;
  font-weight: 400;
  color: var(--brokerly-primary);
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px 12px;
}

.settings-nav .nav-spacer {
  width: 60px;
}

/* Scroll Container */
.settings-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: var(--brokerly-background);
}

/* Settings Sections */
.settings-section {
  margin-bottom: 24px;
  background: var(--modern-card-background);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--brokerly-text-primary);
  margin: 0 0 16px 0;
}

/* Toggle List */
.toggle-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toggle-info {
  flex: 1;
}

.toggle-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--brokerly-text-primary);
  margin-bottom: 2px;
}

.toggle-description {
  font-size: 13px;
  color: var(--brokerly-text-secondary);
  line-height: 1.4;
}

/* iOS-style Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 51px;
  height: 31px;
  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(142, 142, 147, 0.16);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 31px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 27px;
  width: 27px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 3px 1px rgba(0, 0, 0, 0.06);
}

input:checked + .toggle-slider {
  background-color: var(--brokerly-primary);
}

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

/* Action List */
.action-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(142, 142, 147, 0.06);
}

.action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(142, 142, 147, 0.1);
  cursor: pointer;
  transition: background 0.15s;
  font-size: 16px;
  font-weight: 400;
  color: var(--brokerly-text-primary);
  text-align: left;
}

.action-item:last-child {
  border-bottom: none;
}

.action-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

.action-item:active {
  background: rgba(0, 0, 0, 0.06);
}

.action-item.destructive {
  color: #FF3B30;
}

.action-item.destructive svg {
  color: #FF3B30;
}

.action-item svg {
  color: var(--brokerly-text-secondary);
  flex-shrink: 0;
}

.action-item span {
  flex: 1;
}

/* FAQ List */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(142, 142, 147, 0.06);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--brokerly-text-primary);
}

.faq-question svg {
  color: var(--brokerly-text-secondary);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item.expanded .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s;
  font-size: 14px;
  line-height: 1.5;
  color: var(--brokerly-text-secondary);
  padding: 0 16px;
}

.faq-item.expanded .faq-answer {
  max-height: 300px;
  padding: 0 16px 16px 16px;
}

/* Info List */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: rgba(142, 142, 147, 0.06);
  border-radius: 10px;
}

.info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-label {
  font-size: 15px;
  font-weight: 400;
  color: var(--brokerly-text-secondary);
}

.info-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--brokerly-text-primary);
}

/* Responsive */
@media (max-width: 480px) {
  .settings-scroll {
    padding: 16px;
  }
  
  .settings-section {
    padding: 16px;
  }
}

