body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
}

h1, h2 {
  color: #333;
  font-size: 18px;
}

h1 {
  text-align: center;
  font-size: 25px;
}

.page-wrapper {
  padding: 20px;
}

.container {
  max-width: 1000px;
  margin: 120px auto 20px auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Top row: System, Sub-System, Image */
.top-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.top-row label {
  flex: 1 1 1;
  display: flex;
  flex-direction: column;
  font-weight: bold;
  font-size: 16px;
}

.system-select,
.sub-system-select {
  font-size: 16px;
  padding: 4px 6px;
}

.system-image { 
  width: 100%; 
  max-width: 250px; 
  max-height: 250px; 
  height: auto; 
  object-fit: contain; 
  border: 1px solid #ddd; 
  border-radius: 4px; }


/* Remove entry button bottom-left */
.bottom-row {
  margin-top: 0;
}

.remove-entry-button {
  background-color:#440705;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.remove-entry-button:hover {
  background-color: #990000;
}

/* Dynamic symptoms container */
#dynamicSymptomsContainer {
  margin-top: 20px;
}

#dynamicSymptomsList {
  column-count: 4;
  column-gap: 1rem;
}

#dynamicSymptomsList label {
  display: block;
  break-inside: avoid;
  margin-bottom: 0.5rem;
  font-size: 16px;
}

/* Submit button */
#analyzeButton {
  margin-top: 15px;
  padding: 8px 16px;
  font-size: 16px;
  background: linear-gradient(135deg, #0071bb, #023047);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#analyzeButton:hover {
  background-color: #555555;
}

/* Results container */
#results table {
  width: 100%;
  border-collapse: separate; /* allow spacing between cells */
  border-spacing: 15px 10px; /* horizontal and vertical spacing */
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
}

#results th, #results td {
  padding: 10px 15px; /* add padding inside cells */
  text-align: left;
  background-color: #f9f9f9;
  color: #333;
}

#results th {
  background-color: #e0e0e0; /* header color */
  font-weight: bold;
}

#results tr {
  border-radius: 6px;
}

#results tr:nth-child(even) td {
  background-color: #f2f2f2; /* alternate row color */
}

/* Buttons general styling */
button {
  cursor: pointer;
}

/* Responsive layout */
@media (max-width: 1024px) {
  .top-row {
    flex-direction: column;
    gap: 10px;
  }

  #dynamicSymptomsList {
    column-count: 2;
  }

  .system-image {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 600px) {
  .top-row label {
    font-size: 14px;
  }

  .system-select,
  .sub-system-select {
    font-size: 14px;
  }

  #dynamicSymptomsList {
    column-count: 1;
  }
}
