/* Header styles */
.header {
  grid-column: 1 / -1;
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 1.5rem;
}

/* Sidebar styles */
.sidebar {
  background-color: #ecf0f1;
  padding: 0 0.0 1rem 0.0;
  border-right: 1px solid #bdc3c7;
  border-bottom: 2px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: 'Arial', sans-serif;
}

/* Footer styles */
.footer {
  grid-column: 1 / -1;
  background-color: #2c3e50;
  box-sizing: border-box;
  color: white;
  text-align: center;
  padding: 0.1rem;
}

/* Legend styles */
.legend-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.legend-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  margin: 0.7rem 0.5rem;
}

.legend-shape {
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
}

.diamond {
  transform: rotate(45deg);
}

.rounded-rect {
  border-radius: 100px;
  width: 30px;
}

.hexagon {
  width: 30px;
  clip-path: polygon(
    25% 0%, 75% 0%, 100% 50%,
    75% 100%, 25% 100%, 0% 50%
  );
}

.micb { background-color: #EEDFCC; }
.non-micb { background-color: #f0f0f0; }
.selected-theme { background-color: #9966cc; }
.prerequisite { background-color: cyan; }
.corequisite { background-color: coral; }
.required-course { background-color: #ffcc00; }

.legend-item span {
  font-size: 0.8rem;
  color: white;
}

/* Tab styles */
.tab-container {
  display: flex;
  background-color: #e9e9e9;
  border-bottom: 2px solid #ddd;
  width: 100%;
}

.tab {
  flex: 1;
  background-color: #d0d7de;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s;
  padding: 15px 0;
  border-bottom: 2px solid transparent;
}

.tab:hover {
  background-color: #b6c4d4;
}

.tab.active {
  background-color: #B7C9E2;
  border-bottom: 2px solid #007cba;
}

.tab-content {
  padding: 10px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.comments-list {
  font-family: Arial, sans-serif;
  font-size: 14px;
  padding-left: 15px;
  list-style-type: decimal;
  margin-top: 15px;
}


.comments-list li {
  margin-bottom: 10px;
}

.theme-option {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.theme-text {
  margin-right: 10px;
}
.section-label {
  display: block;
  margin: 10px 0 5px;
}

/* Switch container */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

/* Hide the default checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider (the toggle button) */
.slider {
  margin-top: 1;
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Circle inside the slider */
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

/* Checked (toggle on) state */
input:checked + .slider {
  background-color: #4CAF50;
}

/* Move the circle to the right when checked */
input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 24px;
}

.sidebar span {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  line-height: 24px;
  cursor: pointer;
  transition: color 0.3s;
}

.sidebar span:hover {
  color: #4CAF50;
}


