@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

body {
  width: 100%;
  margin: 0 auto;
  font-family: 'Roboto', sans-serif;
  padding: 20px;
}

.body-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 10%;
}

footer {
  width: 100%;
  margin: 0 auto;
}

.buttonmain {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  padding: 0.5rem 1rem;
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.5;
  border-radius: 0.3rem;
}

.buttonmain.logout {
  background-color: #BA1200;
  border-color: #BA1200;
}

.buttonmain.loading.blue {
  background-color: #99b3cf;
  cursor: not-allowed;
}

/* Removed .buttonmain.merge.green and .buttonmain.loading.merge as they were unused. */

.buttonmain.loading.logout {
  background-color: #b8665e;
  cursor: not-allowed;
}

.button-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px; /* 25px left and right from center */
  margin-top: 20px;
}

.buttonmain.previous {
  transform: translateX(-25px);
}

.buttonmain.next {
  transform: translateX(25px);
}

/* Override transform for single previous/next buttons in a row to allow centering */
.button-row .buttonmain.previous:only-child,
.button-row .buttonmain.next:only-child {
  transform: translateX(0);
}

.user-info {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.pipe {
  margin-right: 5px;
  margin-left: 5px;
}

/* Removed unused 'form' styling as no <form> elements are used. */

label { /* General label styling, applied to dynamically created labels */
  margin-bottom: 10px; /* Provides spacing below labels */
  display: block; /* Makes labels take full width which can be useful for alignment */
}

.reminder {
  margin-top: 20px;
  color: #B50000;
}

/* Removed unused '.reminder.selection' as it was not used. */

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}

.grid-container label {
  display: block;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
}

.grid-container label:hover {
  background-color: #f0f0f0;
}

.grid-container input {
  margin-right: 5px;
}

.textinput {
  border-color: #007bff;
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: text;
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  line-height: 1.5;
  border-radius: 0.3rem;
  margin-bottom: 10px;
}

/* Removed unused '.selected-courses-list' and '.selected-courses-list li' as they were not used. */

#error-message-container {
  color: red;
  padding-bottom: 10px;
  font-size: medium;
  font-weight: bold;
  /* display: none; is handled by inline style initially and JS dynamically */
}

.infofooter {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Sandbox Table Layout */
table.sandbox-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
}
table.sandbox-table th, table.sandbox-table td {
  padding: 0.75em 1em;
  border-bottom: 1px solid #ddd;
  text-align: left;
}
table.sandbox-table th {
  background: #f5f5f5;
}
table.sandbox-table td.name-col {
  width: 60%;
  word-break: break-word;
}
table.sandbox-table td.actions-col {
  width: 40%;
  text-align: left;
}

/* Sandbox Reset Button */
.sandbox-reset-btn {
  background-color: orange !important;
  color: #fff !important;
  border: none;
  margin-right: 10px;
  padding: 0.5em 1.2em;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.2s;
}
.sandbox-reset-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* Sandbox Delete Button */
.sandbox-delete-btn {
  background-color: #d32f2f !important;
  color: #fff !important;
  border: none;
  padding: 0.5em 1.2em;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.2s;
}
.sandbox-delete-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* Sandbox Confirm Button (Accessible Green) */
.sandbox-confirm-btn {
  background-color: #388e3c !important; /* Accessible green */
  color: #fff !important;
  border: none;
  margin-right: 10px;
  padding: 0.5em 1.2em;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.2s;
}
.sandbox-confirm-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* Sandbox Cancel Button (Accessible Red) */
.sandbox-cancel-btn {
  background-color: #c62828 !important; /* Accessible red */
  color: #fff !important;
  border: none;
  padding: 0.5em 1.2em;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.2s;
}
.sandbox-cancel-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}