/**
 * Settings Component Styles
 * Settings page with tabs navigation - Glass 3D Design
 */

/* ═══════════════════════════════════════════════════════════════════
   SETTINGS CONTAINER - FULL WIDTH
   ═══════════════════════════════════════════════════════════════════ */
.settings-container {
  width: 100%;
  max-width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════
   SETTINGS TABS NAVIGATION - GLASS 3D
   ═══════════════════════════════════════════════════════════════════ */
.settings-tabs-wrapper {
  margin-bottom: var(--space-8);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 10;
}

.settings-tabs {
  display: inline-flex;
  gap: var(--space-2);
  padding: var(--space-2);
  background: var(--color-surface, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 10;
}

.settings-tab {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.settings-tab svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.settings-tab:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
}

.settings-tab.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  color: #fff;
  box-shadow:
    0 4px 15px rgba(251, 146, 60, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.settings-tab.active svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
  .settings-tabs {
    padding: var(--space-1);
    gap: var(--space-1);
  }

  .settings-tab {
    padding: var(--space-3);
    font-size: var(--text-xs);
  }

  .settings-tab span {
    display: none;
  }

  .settings-tab svg {
    width: 22px;
    height: 22px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   SETTINGS PANELS - GLASS 3D CARD
   ═══════════════════════════════════════════════════════════════════ */
.settings-panels {
  background: var(--color-surface, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.settings-panels::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), #ea580c, var(--color-primary));
}

.settings-panel {
  display: none;
  padding: var(--space-8);
}

.settings-panel.active {
  display: block;
}

.settings-panel[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .settings-panel {
    padding: var(--space-4);
  }
}

/* Panel Header - Glass Style */
.panel-header {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.panel-title svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.panel-title.danger-text {
  color: var(--color-danger);
}

.panel-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════
   SETTINGS FORMS - GLASS 3D
   ═══════════════════════════════════════════════════════════════════ */
.settings-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-family: inherit;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(5px);
  transition: all 0.25s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.15);
}

.form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ═══════════════════════════════════════════════════════════════════
   PREFERENCES LIST - GLASS 3D
   ═══════════════════════════════════════════════════════════════════ */
.preferences-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.preference-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.25s ease;
}

.preference-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.preference-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.preference-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.preference-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Toggle Switch - Glass 3D */
.form-toggle {
  position: relative;
  width: 48px;
  height: 26px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.form-toggle::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #fff, #e0e0e0);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
}

.form-toggle:checked {
  background: linear-gradient(135deg, var(--color-primary), #ea580c);
  border-color: transparent;
  box-shadow: 0 0 15px rgba(251, 146, 60, 0.4);
}

.form-toggle:checked::before {
  transform: translateX(22px);
}

/* ═══════════════════════════════════════════════════════════════════
   SECURITY SECTIONS - GLASS 3D
   ═══════════════════════════════════════════════════════════════════ */
.security-section {
  padding: var(--space-6) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.security-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.security-section:first-child {
  padding-top: 0;
}

.section-subtitle {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.section-subtitle svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

.security-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  transition: all 0.25s ease;
}

.security-option:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.security-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.security-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.security-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Sessions List - Glass 3D */
.sessions-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.session-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  transition: all 0.25s ease;
}

.session-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.session-item.current {
  border-color: var(--color-primary);
  background: rgba(251, 146, 60, 0.05);
  box-shadow: 0 0 20px rgba(251, 146, 60, 0.1);
}

.session-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.session-device {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.session-details {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.session-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
}

/* ═══════════════════════════════════════════════════════════════════
   PRIVACY ACTIONS - GLASS 3D
   ═══════════════════════════════════════════════════════════════════ */
.privacy-actions {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.privacy-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  font-weight: 500;
  transition: all 0.25s ease;
}

.privacy-actions .btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.privacy-actions .btn svg {
  width: 18px;
  height: 18px;
}

/* ═══════════════════════════════════════════════════════════════════
   DANGER ZONE (KEPT FOR COMPATIBILITY)
   ═══════════════════════════════════════════════════════════════════ */
.danger-zone {
  background: rgba(239, 68, 68, 0.03);
  border: 2px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  backdrop-filter: blur(10px);
}

.danger-warning {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}

.danger-warning svg {
  width: 28px;
  height: 28px;
  color: var(--color-danger);
  flex-shrink: 0;
}

.danger-warning p {
  font-size: var(--text-sm);
  color: var(--color-text);
  margin: 0;
  line-height: 1.6;
}

.danger-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.danger-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  transition: all 0.25s ease;
}

.danger-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.danger-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.danger-title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.danger-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .danger-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .danger-item .btn {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   SETTINGS BUTTONS - GLASS 3D
   ═══════════════════════════════════════════════════════════════════ */
.settings-panel .btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #ea580c);
  border: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(251, 146, 60, 0.3);
}

.settings-panel .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 146, 60, 0.4);
}

.settings-panel .btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.settings-panel .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.settings-panel .btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.settings-panel .btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.settings-panel .btn-outline-danger {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.5);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  color: var(--color-danger);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.settings-panel .btn-outline-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--color-danger);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════
   ICON BOXES 3D (FOR SECTION SUBTITLES)
   ═══════════════════════════════════════════════════════════════════ */
.icon-box-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), #ea580c);
  border-radius: var(--radius-lg);
  box-shadow:
    0 4px 12px rgba(251, 146, 60, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.icon-box-3d svg {
  width: 20px;
  height: 20px;
  color: #fff;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.icon-box-3d.blue {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.icon-box-3d.green {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.icon-box-3d.purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .settings-panel {
    padding: var(--space-5);
  }

  .panel-header {
    margin-bottom: var(--space-6);
  }

  .security-section,
  .preference-item,
  .security-option {
    padding: var(--space-4);
  }
}

@media (max-width: 480px) {
  .settings-panel {
    padding: var(--space-4);
  }

  .settings-tabs {
    width: 100%;
    justify-content: center;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }
}

