/* Reset some basic styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f4f4f4;
  padding: 20px;
  color: #333;
}

/* Navigation styling */
nav {
  text-align: center;
  margin-bottom: 20px;
}

nav a {
  color: #333;
  text-decoration: none;
  margin: 0 8px;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* Page Title */
h1 {
  text-align: center;
  margin-bottom: 20px;
}

/* General Section Headers */
h2 {
  text-align: center;  /* center h2 headings */
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.5rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
}

/* Form styling */
form {
  background: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

form input[type="text"],
form input[type="number"],
form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #bbb;
  border-radius: 3px;
  font-size: 1rem;
}

form button {
  width: 100%;
  padding: 10px;
  background-color: #5cb85c;
  color: #fff;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #4cae4c;
}

/* List styling */
ul {
  list-style: none;
  padding-left: 0;
  max-width: 600px;
  margin: 0 auto 20px;
}

ul li {
  background: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
}

/* Centering the Delete Product Form */
#deleteProductForm {
  max-width: 400px;
  margin: 0 auto;
}

/* Adjust layout for product details list */
#productList li {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Finished Jobs Picker Styling */
#finishedJobsForm input[type="date"] {
  width: calc(100% - 20px);
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #bbb;
  border-radius: 3px;
  font-size: 1rem;
}

#finishedJobsForm button {
  width: 100%;
  padding: 10px;
  background-color: #5cb85c;
  color: #fff;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

#finishedJobsForm button:hover {
  background-color: #4cae4c;
}

/* Additional styling for Unit Form */
#unitForm {
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 800px;
}

/* Style labels for clarity */
#unitForm label {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

/* Styling for each controller block */
.controller {
  border: 1px solid #aaa;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 15px;
  background: #f9f9f9;
}

.controller h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

/* Container for decks and programs */
.decksContainer, .programsContainer {
  padding-left: 15px;
  margin-top: 10px;
}

/* Individual deck and program styling */
.deck, .program {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 10px;
  background: #fff;
}

/* Improve dropdown styling */
select {
  appearance: none;
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 3px;
  width: 100%;
  margin-bottom: 10px;
}

/* Optional: Adjust hidden templates to remain hidden (if loaded) */
#controllerTemplate,
#deckTemplate,
#programTemplate {
  display: none;
}