/* ========================================================================
   Fit Metrics – style.css (Version 1.1.2.4.3)
   ======================================================================== */

/* ----------------------------------------
   Grundlegende Container (Training/Statistik/Manage)
   ---------------------------------------- */
.fitmetrics-training,
.fitmetrics-statistics,
.fitmetrics-manage {
  margin: 2rem auto;
  background-color: transparent;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 1.5rem;
  color: #525E76;
}

/* ----------------------------------------
   Überschriften und Absätze
   ---------------------------------------- */
.fitmetrics-training h2,
.fitmetrics-statistics h2,
.fitmetrics-manage h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #F95151;
}
.fitmetrics-training p,
.fitmetrics-statistics p,
.fitmetrics-manage p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* ----------------------------------------
   Buttons und Links
   ---------------------------------------- */
button,
a.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #525E76;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
}
button:hover,
a.button:hover {
  background-color: #F95151;
}

a.link {
  color: #525E76;
  text-decoration: underline;
}

a.link:hover {
  color: #F95151;
}

/* ----------------------------------------
   Tabellen (Statistik)
   ---------------------------------------- */
.stats-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
.stats-table th,
.stats-table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: center;
}
.stats-table th {
  background-color: #f0f0f0;
  font-weight: bold;
}

/* ----------------------------------------
   Formularfelder
   ---------------------------------------- */
input[type="number"],
input[type="text"],
select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #F95151;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* ----------------------------------------
   Übung-Blocks im Training-Formular
   ---------------------------------------- */
.exercise-block {
  margin-bottom: 2rem;
  border: 1px solid #e1e1e1;
  padding: 1rem;
  border-radius: 6px;
  background-color: #525E76;
  color: #FEC748;
}
.exercise-card {
  margin-bottom: 2rem;
  border: 1px solid #e1e1e1;
  padding: 1rem;
  border-radius: 6px;
  background-color: #525E76;
  color: #747BA9;
}
.new-ex-form {
  margin-bottom: 2rem;
  border: 1px solid #e1e1e1;
  padding: 1rem;
  border-radius: 6px;
  background-color: #525E76;
  color: #9A1B27;
}
.exercise-block h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: #DFE4DE;
}
.new-ex-form h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: #DFE4DE;
}
.satz {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}
.satz label {
  flex: 1;
  margin-right: 1rem;
}

/* ----------------------------------------
   Rahmen-Farben für Gewichtsvorschläge
   ---------------------------------------- */
.weight-increase {
  border: 4px solid #AEC33A !important;  /* grün */
  color: #AEC33A !important;
  border-radius: 4px;
}
.weight-decrease {
  border: 4px solid #D92139 !important;  /* rot */
  color: #D92139 !important;
  border-radius: 4px;
}
.weight-neutral {
  border-radius: 4px;
}

/* ----------------------------------------
   6) Placeholder-Farbe für Reps-Felder
   ---------------------------------------- */
input::placeholder {
  color: #999;
  opacity: 1;
}
input.reps-field::placeholder {
  color: #888;
}

/* ----------------------------------------
   Layout für Übungs-Karten
   ---------------------------------------- */
.ex-meta-row {
  display: flex;
  gap: 1rem;
}
.ex-col {
  flex: 1;
}

/* ----------------------------------------
   Bestätigungs-Dialog
   ---------------------------------------- */
.fitmetrics-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.fitmetrics-modal-content {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.fitmetrics-modal-content button {
  margin: 0.5rem;
}
