/* === CoreScope — system-settings.css === */
/* Tactical SHTF Sentinel Controls & System Sliders */

.settings-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(16px, 2.5vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Header */
.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.settings-title-area {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-title-area h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-xl, 24px);
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
}

.settings-subtitle {
  font-size: var(--fs-sm, 13.5px);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}

.settings-presets {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text);
}

.settings-btn:hover {
  background: var(--surface-2);
  border-color: var(--border-hover, var(--border));
}

.settings-btn-primary {
  background: var(--accent);
  color: var(--text-on-accent, #fff);
  border-color: var(--accent);
}

.settings-btn-primary:hover {
  filter: brightness(1.1);
}

.settings-btn-emcon {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--status-yellow, #f59e0b);
}

.settings-btn-emcon:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.6);
}

/* Section Cards Grid */
.settings-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 18px;
}

/* Individual Sentinel Option Card */
.sentinel-option-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 12px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.05));
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.sentinel-option-card:hover {
  border-color: var(--border-hover, var(--border));
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
}

.sentinel-option-card.disabled {
  opacity: 0.65;
  background: var(--surface-2);
}

.sentinel-option-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

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

.sentinel-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.sentinel-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.sentinel-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.sentinel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}

.sentinel-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sentinel-status-pill.active {
  background: rgba(34, 197, 94, 0.12);
  color: var(--status-green, #22c55e);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.sentinel-status-pill.muted {
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* === Tactical Toggle Slider Switch === */
.tactical-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}

.tactical-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.tactical-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--surface-3, #94a3b8);
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
}

.tactical-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tactical-switch input:checked + .tactical-slider {
  background-color: var(--status-green, #22c55e);
  border-color: rgba(34, 197, 94, 0.8);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.35);
}

.tactical-switch input:focus-visible + .tactical-slider {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tactical-switch input:checked + .tactical-slider:before {
  transform: translateX(22px);
  background-color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .settings-wrapper {
    padding: 12px;
    gap: 18px;
    padding-bottom: 76px;
  }

  .settings-header {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-presets {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .settings-btn {
    justify-content: center;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }
}
