* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f8f9fa;
  margin: 0; padding: 20px;
  color: #333;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

h1, h2 {
  text-align: center;
  color: #2c3e50;
}

.form-section,
.display-section,
.comments-section,
.analytics-section {
  background: #fff;
  padding: 20px;
  margin: 15px 0;
  border-radius: 6px;
  box-shadow: 0 0 10px #ccc;
}

form label {
  display: block;
  margin-bottom: 10px;
}

form input[type="text"],
form input[type="number"],
form select,
form textarea,
#commentInput {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 1rem;
}

button {
  background-color: #2980b9;
  color: white;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 600;
  margin-top: 10px;
}

button:hover {
  background-color: #1c5980;
}

.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.patient-profile,
.case-presentation {
  background: #ecf0f1;
  padding: 15px;
  border-radius: 6px;
  width: 280px;
  box-shadow: 0 0 5px #aaa;
}

.patient-profile h3,
.case-presentation h4 {
  margin-top: 0;
  color: #34495e;
}

#commentList {
  list-style: none;
  padding-left: 0;
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #bbb;
  border-radius: 4px;
  margin-top: 10px;
  background: #fafafa;
}

#commentList li {
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
  font-size: 0.9rem;
}

#commentList li:last-child {
  border-bottom: none;
}

.analytics-section ul {
  list-style: none;
  padding-left: 0;
  font-weight: 600;
  font-size: 1.1rem;
  color: #34495e;
  text-align: center;
}
.export-section {
  text-align: center;
  margin: 20px 0;
}

.export-section button {
  background-color: #27ae60;
  margin: 0 10px;
  padding: 10px 20px;
  font-weight: 600;
}

.export-section button:hover {
  background-color: #1e8449;
}
@media print {
  body * {
    visibility: hidden;
  }
  #patientProfiles, #casePresentations, #patientProfiles *, #casePresentations * {
    visibility: visible;
  }
  #patientProfiles, #casePresentations {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}
/* Styles for table */
.list-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.list-table th, .list-table td {
  border: 1px solid #ddd;
  padding: 8px;
}

.list-table th {
  background-color: #2980b9;
  color: white;
  cursor: pointer;
}

.pagination {
  margin-top: 10px;
  text-align: center;
}

.pagination button {
  margin: 0 5px;
  padding: 5px 10px;
}

@media print {
  body * {
    visibility: hidden;
  }
  #patientProfiles, #casePresentations {
    visibility: visible;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }
}

form label {
  display: block;
  margin-bottom: 15px;
  font-weight: 500;
}

form input[type="text"],
form input[type="number"],
form select,
form textarea {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

fieldset {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

legend {
  font-weight: bold;
  font-size: 16px;
  padding: 0 10px;
}

button {
  margin-top: 20px;
}
