.container {
  max-width: 800px;
  margin: 0rem auto;
  font-family: Arial, sans-serif;
}

.centerContainer {
  align-items: center;
  display: flex;
  justify-content: center;
}

.title {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
}

.buttonRow {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.button {
  padding: 10px 14px;
  border: none;
  border-radius: 16px;
  font-weight: 500;
  color: var(--button-secondary);
  background: var(--button-secondary-bg-color);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);

  cursor: pointer;
  transition:
    background 0.3s,
    box-shadow 0.3s,
    transform 0.2s ease;
}

.button:hover {
  background: var(--button-secondary-bg-color-hover);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.buttonPrimary {
  background: var(--button-primary);
  color: white;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.buttonPrimary:hover {
  background: var(--button-primary-hover);
  transform: translateY(-1px);
}

.buttonSecondary {
  background-color: var(--button-secondary);
  color: black;
  border: 1px solid #ccc;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.buttonSecondary:hover {
  background-color: var(--button-secondary-hover);
}

.formGroup {
  width: 100%; /* or whatever fixed width */
  margin: 0 auto; /* this centers it horizontally */
  text-align: center; /* centers label/input inside */
}

.label {
  font-weight: 500;
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.input,
.textarea {
  width: 60%;
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  resize: none; 
  background: var(--input-bg);
}

.input{
  width: 30%;
}

.invalid{
  border: 1px solid #ff0000;
}

.resultsSection {
  margin-top: 2rem;
}

.resultsTitle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
}

.tableHeader {
  display: grid;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
  grid-template-columns: repeat(4, 1fr) 60px;
}

.tableHeaderTitle {
  margin: auto;
}

.tableRow {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.deleteButton {
  background-color: var(--button-delete);
  color: white;
  padding: 0.4rem 0.6rem;
}

.deleteButton:hover {
  background-color: var(--button-delete-hover);
}

.saveButton {
  background-color: var(--button-save);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.saveButton:hover {
  background-color: var(--button-save-hover);
}

.saveButton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spinner {
  margin-left: 10px;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.errorMessage {
  align-items: center;
  display: flex;
  justify-content: center;
  color: red;
  margin-top: 8px;
}

@media (max-width: 1399px) {
  .container {
    margin: 0.5rem auto;
  }
}

@media (max-width: 1099px) {
  .container {
    margin: 1rem auto;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .container {
    margin: 3rem auto;
  }
  .input,
  .textarea {
    width: 100%;
  }
}

@media (max-width: 399px) {
  .container {
    margin: 4rem auto;
  }
  .tableHeader {
    font-size: 0.8rem;
  }
}

@media (max-width: 299px) {
  .tableHeader {
    font-size: 0.7rem;
  }
}