body {
  font-family: "Roboto", sans-serif;
  margin: 20px;
  background-color: #f0f8ff;
  color: #333;
  transition:
    background-color 0.3s,
    color 0.3s;
}
body.dark {
  background-color: #1e1e1e;
  color: #ddd;
}
h1,
h2,
h3 {
  color: #0056b3;
}
body.dark h1,
body.dark h2,
body.dark h3 {
  color: #4da6ff;
}
.section {
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
}
body.dark .section {
  background-color: #333;
}
.category {
  margin: 10px 0;
}
.category-header {
  cursor: pointer;
  background-color: #e6f2ff;
  padding: 10px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
body.dark .category-header {
  background-color: #444;
}
.category-content {
  display: none;
  padding: 10px;
}
.main-item {
  margin: 15px 0;
  padding: 10px;
  border-bottom: 1px solid #eee;
  align-items: flex-start;
}
body.dark .main-item {
  border-bottom: 1px solid #555;
}
.main-item-header {
  display: flex;
  align-items: center;
  font-weight: bold;
  cursor: pointer;
}
.sub-items {
  display: none;
  margin-left: 20px;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 4px;
}
body.dark .sub-items {
  background-color: #3a3a3a;
}
.sub-item {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.sub-item label {
  display: flex;
  align-items: center;
}
input[type="checkbox"] {
  margin-right: 10px;
}

.main-item > input[type="date"],
.main-item > textarea,
.sub-item > input[type="date"],
.sub-item > textarea {
  display: block;
  width: 100%;
  max-width: 300px;  /* adjust/remove if wider alignment desired */
  margin-top: 5px;
}
.progress-bar {
  background-color: #e0e0e0;
  height: 25px;
  border-radius: 12px;
  overflow: hidden;
  margin: 10px 0;
}
body.dark .progress-bar {
  background-color: #444;
}
.progress-fill {
  background: linear-gradient(to right, #4caf50, #8bc34a);
  height: 100%;
  transition: width 0.5s ease-in-out;
}
button {
  padding: 10px 15px;
  background: linear-gradient(#007bff, #0056b3);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}
button:hover {
  background: linear-gradient(#0056b3, #004080);
}
body.dark button {
  background: linear-gradient(#4da6ff, #007bff);
}
input[type="date"],
textarea {
  margin-top: 5px;
  width: 100%;
  max-width: 300px;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
}
body.dark input[type="date"],
body.dark textarea {
  background-color: #444;
  color: #ddd;
  border-color: #666;
}
.tooltip {
  position: relative;
  display: inline-block;
  margin-left: 5px;
}
.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
}
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
.fa-icon {
  margin-right: 5px;
}
#dark-mode-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
}
#resources-links {
  display: none;
  margin-top: 10px;
}
@media (max-width: 600px) {
  .section {
    padding: 10px;
  }
}
@media print {
  .no-print {
    display: none;
  }
}
