/* Modul-Spezialoptik 130_multiple_regression (aus sample2.html) — Rest deckt assets/css/style.css ab */

/* Hyperparameter Explanation Cards */
.hyperparam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.hyperparam-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 3px solid #dee2e6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.hyperparam-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  border-color: #0047AB;
}

.hyperparam-card h4 {
  color: #DC143C;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.hyperparam-card .icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
}

/* Visual Explanation Boxes */
.visual-box {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
  border: 2px solid #dee2e6;
}

.visual-box h5 {
  color: #DC143C;
  margin-bottom: 1rem;
}

/* Vergleichstraining: 4 Modell-Karten */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.model-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 3px solid #dee2e6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
}

.model-card.training {
  border-color: #0047AB;
  animation: mr-pulse 1.5s infinite;
}

.model-card.completed {
  border-color: #28a745;
}

.model-card.failed {
  border-color: #DC143C;
}

@keyframes mr-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(0,71,171,0.3); }
  50% { box-shadow: 0 4px 16px rgba(0,71,171,0.6); }
}

.model-card h4 {
  color: #0047AB;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.model-params {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.model-params p {
  margin: 0.3rem 0;
  color: #333;
}

/* Progress Bar (eigene Optik je Modell-Karte) */
.progress-container {
  margin: 1rem 0;
  background-color: #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  height: 24px;
  position: relative;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #0047AB 0%, #DC143C 100%);
  transition: width 0.3s ease;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 600;
  color: #333;
  font-size: 0.85rem;
  text-shadow: 0 0 3px white;
}

/* Ergebnis-Anzeige je Modell-Karte */
.result-display {
  margin-top: 1rem;
  padding: 1rem;
  background: #f0f4ff;
  border-radius: 4px;
  border-left: 4px solid #0047AB;
}

.result-display p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #333;
}

.result-value {
  font-weight: 600;
  color: #DC143C;
  font-family: 'Courier New', monospace;
}

/* Status-Badge je Modell-Karte */
.status-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.status-badge.pending {
  background: #e9ecef;
  color: #666;
}

.status-badge.training {
  background: #0047AB;
  color: white;
}

.status-badge.completed {
  background: #28a745;
  color: white;
}

.status-badge.failed {
  background: #DC143C;
  color: white;
}

/* Gewinner-Badge auf der Sieger-Karte */
.winner-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #FFD700;
  color: #856404;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(255,215,0,0.5);
  animation: mr-bounce 1s infinite;
}

@keyframes mr-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
