/* Reset a základy */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #1e1e1e; /* trochu tmavší než #2e2e2e */
  color: #eee; /* světle šedá místo žluté, aby nebylo příliš agresivní */
  padding: 20px;
}

header, footer {
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  font-size: 2em;
  color: #ffdd00; /* žlutá pro hlavní nadpis */
}

.weekdays {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.weekdays button {
  flex: 1 1 calc(14% - 10px);
  padding: 12px 10px;
  font-size: 1em;
  background-color: #444; /* tmavě šedá */
  color: #eee;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.weekdays button:hover,
.weekdays button:focus {
  background-color: #ffdd00;
  color: #1e1e1e;
  outline: none;
}

#training-section {
  background-color: #2f2f2f;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

#training-section.hidden {
  display: none;
}

#training-section h2 {
  color: #ffdd00;
  margin-bottom: 20px;
  font-weight: 700;
}

#exercises-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
}

.exercise {
  flex: 0 0 320px;
  background-color: #3a3a3a;
  padding: 15px;
  border-radius: 8px;
  border-left: 6px solid #ffdd00;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
  color: #eee;
}

.exercise label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

.exercise select,
.exercise input {
  margin-top: 6px;
  padding: 8px;
  width: 100%;
  border-radius: 6px;
  border: none;
  background-color: #555;
  color: #eee;
  font-size: 0.95em;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.8);
  transition: background-color 0.3s ease;
}

.exercise select:hover,
.exercise input:hover,
.exercise select:focus,
.exercise input:focus {
  background-color: #666;
  outline: none;
}

.exercise button.remove-exercise {
  margin-top: 15px;
  color: #ff4c4c;
  background: none;
  border: 1.5px solid transparent;
  padding: 8px 12px;
  border-radius: 7px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(255, 76, 76, 0.6);
}

.exercise button.remove-exercise:hover {
  background-color: #ff4c4c;
  color: #2f2f2f;
  border-color: #ff4c4c;
  box-shadow: 0 4px 8px rgba(255, 76, 76, 0.9);
}

#add-exercise,
.primary,
.save-btn {
  display: inline-block;
  padding: 12px 28px;
  margin-top: 10px;
  border: none;
  border-radius: 10px;
  font-size: 1em;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
}

#add-exercise,
.primary {
  background-color: #ffdd00;
  color: #1e1e1e;
}

#add-exercise:hover,
.primary:hover {
  background-color: #e6c700;
}

.save-btn {
  background-color: #00707a;
  color: white;
  margin-left: 15px;
}

.save-btn:hover {
  background-color: #004e55;
}

.summary {
  margin-top: 25px;
  font-size: 1.1em;
  color: #eee;
}

.summary strong {
  color: #ffdd00;
}

@media (max-width: 1023px) {
  .weekdays {
    flex-wrap: wrap;
    justify-content: center;
  }

  .weekdays button {
    flex: 1 1 calc(33.333% - 10px);
    margin-bottom: 10px;
  }

  #training-section {
    padding: 16px;
  }
}

@media (max-width: 767px) {
  body {
    padding: 10px;
  }

  header h1 {
    font-size: 1.4rem;
  }

  .weekdays button {
    flex: 1 1 calc(50% - 10px);
    font-size: 0.9rem;
    padding: 8px;
  }

  .exercise {
    padding: 12px;
  }

  .exercise label {
    font-size: 0.9rem;
  }

  .exercise select,
  .exercise input {
    font-size: 0.9rem;
    padding: 5px;
  }

  #add-exercise,
  #save-training {
    width: 100%;
    margin-top: 10px;
  }

  #weekly-recap {
    font-size: 0.9rem;
    padding: 10px;
  }
}
