/* Simulation Page Styles */

*, *::before, *::after { 
  box-sizing: border-box; 
}

.container {
  max-width: 1600px;
  margin: 0 auto;
}

header {
  background: linear-gradient(135deg, #1C3A5F 0%, #0F2240 100%);
  padding: 32px 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  margin-bottom: 24px;
  color: white;
}

header h1 {
  color: white;
  font-size: 1.875rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  margin-bottom: 0;
}

header a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

header a:hover {
  color: white;
}

.tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  padding: 16px;
  background: white;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  color: #4B5563;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tab.active {
  background: #F59E0B;
  color: #0B0F14;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.main-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  overflow: hidden;
}

.card-header {
  background: #FFFFFF;
  padding: 24px 30px;
  border-bottom: 3px solid #F59E0B;
}

.card-header h2 {
  color: #2d3748;
  font-size: 24px;
  margin-bottom: 8px;
}

.card-header p {
  color: #718096;
  font-size: 14px;
}

.card-body {
  padding: 30px;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.control-group {
  background: #f7fafc;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.control-group label {
  display: block;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
  font-size: 14px;
}

.control-group small {
  color: #718096;
  font-size: 12px;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.slider-container input[type="range"] {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #F59E0B;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.slider-value {
  min-width: 60px;
  padding: 6px 12px;
  background: white;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  color: #2d3748;
  border: 1px solid #e2e8f0;
}

.btn {
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: #F59E0B;
  color: #0B0F14;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-primary.btn-run {
  background: linear-gradient(135deg, #16A34A 0%, #15803d 100%);
  color: white;
  font-size: 15px;
  padding: 12px 24px;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-primary.btn-run:hover {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.4);
}

.btn-primary.btn-run svg {
  flex-shrink: 0;
}

.btn-primary:hover {
  background: #D97706;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Action buttons group styling */
.action-buttons-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-action svg {
  flex-shrink: 0;
}

.btn-export {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-export:hover {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-share {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(71, 85, 105, 0.3);
}

.btn-share:hover {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(71, 85, 105, 0.4);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.metric-card {
  background: #FFFFFF;
  padding: 20px;
  border-radius: 8px;
  border: 2px solid #F5F5F5;
  text-align: center;
}

.metric-label {
  color: #718096;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.metric-value {
  color: #2d3748;
  font-size: 26px;
  font-weight: 700;
}

.metric-value.positive {
  color: #16A34A;
}

.metric-value.negative {
  color: #DC2626;
}

.chart-container {
  background: #f7fafc;
  padding: 20px;
  border-radius: 8px;
  margin: 16px 0;
  border: 1px solid #e2e8f0;
}

.chart-container h3 {
  color: #2d3748;
  font-size: 16px;
  margin-bottom: 16px;
}

.chart-container canvas {
  max-height: 350px;
}

.loading-inline {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.alert {
  padding: 16px 20px;
  border-radius: 8px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #DC2626;
}

.alert-success {
  background: #ECFDF3;
  color: #166534;
  border: 1px solid #16A34A;
}

.alert-info {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #2563EB;
}

.hidden {
  display: none !important;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.comparison-table th,
.comparison-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
  background: #f7fafc;
  font-weight: 600;
  color: #2d3748;
}

.comparison-table tr:hover {
  background: #f7fafc;
}

.info-panel {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.info-panel details {
  margin-top: 10px;
}

.info-panel details summary {
  cursor: pointer;
  font-weight: 600;
  color: #2d3748;
}

.info-panel p {
  margin-bottom: 8px;
  color: #2d3748;
}

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #718096;
}

.progress-wrapper {
  margin-top: 16px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2d3748;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #edf2f7;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #F59E0B, #F97316);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.muted-text {
  color: #718096;
  font-size: 12px;
}
