/* ==========================================================================
   Settings Page — Consistent styling using Stone & Clay design tokens
   ========================================================================== */

/* Settings sections */
.settings-section {
  margin-top: 24px;
}

.settings-section__title {
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
}

.settings-section__card {
  padding: 20px;
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border-subtle, #e7e5e4);
  border-radius: 10px;
}

/* Integration cards grid */
.settings-integrations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .settings-integrations-grid {
    grid-template-columns: 1fr;
  }
}

/* Notification preference items */
.notif-pref-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.15s;
}

.notif-pref-item:last-child {
  margin-bottom: 0;
}

.notif-pref-item:hover {
  background: var(--bg-hover, #e7e5e4);
}

.notif-pref-item__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.notif-pref-item__desc {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Import history table */
.import-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.import-history-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.import-history-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--stone-3, #e7e5e4);
  color: var(--text-primary);
}

.import-history-table tr:last-child td {
  border-bottom: none;
}

.import-history-table tr:hover td {
  background: var(--bg-hover, #f5f5f4);
}

/* Sync review diff items */
.sync-diff-item {
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  margin-bottom: 10px;
}

.sync-diff-item:last-child {
  margin-bottom: 0;
}

.sync-diff-item__field {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.sync-diff-item__values {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.sync-diff-item__old {
  color: var(--status-error, #ef4444);
  text-decoration: line-through;
}

.sync-diff-item__arrow {
  color: var(--text-tertiary);
}

.sync-diff-item__new {
  color: var(--status-success, #10b981);
  font-weight: 500;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.status-badge--complete {
  background: var(--status-success-bg);
  color: var(--status-success);
}

.status-badge--processing {
  background: var(--status-info-bg);
  color: var(--status-info);
}

.status-badge--failed {
  background: var(--status-error-bg);
  color: var(--status-error);
}
