/* Strategy Configurator Styles */

.strategy-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.strategy-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.agent-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.agent-selector label {
  font-weight: 600;
  white-space: nowrap;
}

.agent-selector select {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  background: #fff;
  font-size: 0.95rem;
  min-width: 200px;
  cursor: pointer;
}

.dark .agent-selector select {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

/* Preset Buttons */
.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.preset-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.dark .preset-btn {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

.preset-btn:hover {
  border-color: #6366f1;
  transform: translateY(-1px);
}

.preset-btn.active {
  border-color: #6366f1;
  background: #eef2ff;
}

.dark .preset-btn.active {
  background: #312e81;
}

.preset-emoji {
  font-size: 1.1rem;
}

.preset-name {
  text-transform: capitalize;
}

/* Grid Layout */
.strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.strategy-section {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid #e2e8f0;
}

.dark .strategy-section {
  background: #1e293b;
  border-color: #334155;
}

.strategy-section h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.section-desc {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

.dark .section-desc {
  color: #94a3b8;
}

/* Slider Rows */
.slider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.slider-label {
  min-width: 80px;
  font-size: 0.9rem;
  font-weight: 500;
}

.priority-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
}

.dark .priority-slider {
  background: #334155;
}

.priority-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--slider-color, #6366f1);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.priority-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--slider-color, #6366f1);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.slider-value {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #6366f1;
}

/* Behavior Toggles */
.behavior-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.threshold-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.threshold-row label {
  min-width: 180px;
  font-size: 0.9rem;
}

.threshold-row input[type="range"] {
  flex: 1;
  min-width: 100px;
}

.threshold-row span {
  min-width: 40px;
  text-align: right;
  font-weight: 600;
  color: #6366f1;
}

.toggle-row label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #6366f1;
}

/* Radar Chart + Summary */
.strategy-viz {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#strategy-radar {
  max-width: 100%;
}

.strategy-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.summary-item strong {
  color: #6366f1;
}

/* Actions */
.strategy-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn-save {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 8px;
  background: #6366f1;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-save:hover:not(:disabled) {
  background: #4f46e5;
  transform: translateY(-1px);
}

.btn-save:disabled {
  opacity: 0.5;
  cursor: default;
}

.btn-reset {
  padding: 0.6rem 1.2rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: transparent;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.dark .btn-reset {
  border-color: #334155;
  color: #e2e8f0;
}

.btn-reset:hover {
  border-color: #6366f1;
}

.save-status {
  font-size: 0.85rem;
  color: #64748b;
}

/* Overview */
.strategy-overview h3 {
  margin-bottom: 1rem;
}

.strategies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.strategy-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.dark .strategy-card {
  background: #1e293b;
  border-color: #334155;
}

.strategy-card:hover {
  border-color: #6366f1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.card-name {
  font-weight: 700;
  font-size: 1rem;
}

.card-preset {
  font-size: 0.8rem;
  text-transform: capitalize;
  color: #64748b;
}

.dark .card-preset {
  color: #94a3b8;
}

.card-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

.dark .card-stats {
  color: #94a3b8;
}

.no-data {
  text-align: center;
  color: #94a3b8;
  padding: 2rem;
  font-style: italic;
}

/* Mobile */
@media (max-width: 768px) {
  .strategy-grid {
    grid-template-columns: 1fr;
  }
  
  .strategy-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .agent-selector select {
    width: 100%;
  }
  
  .preset-buttons {
    width: 100%;
  }
  
  .threshold-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .strategies-grid {
    grid-template-columns: 1fr;
  }
}
