/* General Page Layout */
body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 20px;
  background-color: #f4f4f9;
  color: #333;
  text-align: center;
}

/* Title and Headings */
h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

h2, h3 {
  margin: 10px 0;
}

.input-column {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center the inputs */
  width: 100%;
  max-width: 300px; /* Set a reasonable max width */
  margin: 0 auto; /* Center within the parent */
}

.input-column label {
  margin-top: 10px;
  font-weight: bold;
}

.input-column input {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center;
}


/* Button Styling */
button {
  border: none;
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1rem;
  color: white;
}

button:hover {
  opacity: 0.9;
}

/* Exercise Selection Buttons */
#overhead-press-btn, #bench-press-btn, #squat-btn, #deadlift-btn {
  background-color: #007bff;
  margin: 0 5px;
}

#overhead-press-btn:hover, #bench-press-btn:hover, #squat-btn:hover, #deadlift-btn:hover {
  background-color: #0056b3;
}

/* Save and Clear Buttons */
#save {
  background-color: #28a745;
  margin-top: 10px;
  width: auto; /* Button adjusts to content size */
  max-width: 200px; /* Optional: limit maximum width */
  text-align: center;
}

#save:hover {
  background-color: #218838;
}

#clear-last-entry {
  background-color: #dc3545;
  margin-top: 10px;
}

#clear-last-entry:hover {
  background-color: #c82333;
}

/* Plus, Minus, Initialize, and Utility Buttons */
#amrap-plus, #amrap-minus, #actualWeight-plus, #actualWeight-minus, #initializeExercise, #import-history, #export-history, #view-history, #import-config, #backup, #restore {
  background-color: #343a40;
}

/* Tracker Layout */
#tracker {
  display: flex;
  flex-direction: column; /* Stack elements vertically */
  align-items: center;    /* Center align all elements */
  width: 100%; /* Ensure full width for consistent alignment */
  max-width: 500px; /* Optional: Limit the width for better layout */
  margin: 0 auto; /* Center tracker on the page */
}

/* Show Alternative Weights Button */
#showAlternativeWeightsBtn {
  margin-bottom: 10px; /* Add space below the button */
  width: auto; /* Ensure button width is appropriate for content */
  max-width: 200px; /* Optional: limit maximum width */
  text-align: center; /* Center-align text inside the button */
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  background-color: #4CAF50; /* Button color */
  color: white;
  transition: background-color 0.3s ease;
}

#showAlternativeWeightsBtn:hover {
  background-color: #45a049; /* Darker shade on hover */
}

/* Alternative Exercise Weights Text Styling */
#alternativeWeights {
  display: none; /* Hidden by default */
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  font-style: normal; /* Regular font style */
}

/* Deload Notification Styling */
#deloadNotice {
  color: #ff4500;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* AMRAP Field */
#amrap {
  margin-top: 10px;
  width: auto; /* Allow natural width */
  max-width: 150px; /* Prevent it from being too wide */
  text-align: center; /* Center the text in the input */
}

#amrap-controls {
  display: flex;
  touch-action: manipulation;
  justify-content: center; /* Center the buttons horizontally */
  gap: 10px; /* Add spacing between +/- buttons */
  margin-top: 5px;
}

#actualWeight-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 5px;
}

/* Force Vertical Stacking of Elements in Tracker */
#showAlternativeWeightsBtn,
#alternativeWeights,
#amrap,
#amrap-controls,
#save {
  width: 100%; /* Ensure full-width alignment */
  text-align: center; /* Align content to the center */
}

#supplementWork {
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  color: #333;
}
