
.menu-section {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.menu-toggle {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-weight: normal;
  padding: 8px 0;
  color: #576f76;
  font-size: .75rem; /* Topics */
}

.submenu {
  list-style: none;
  padding-left: 0;
  display: none;
  color: #576f76;
  font-size: .85rem; /* Topics */
}

.submenu.show {
  display: block;
}

.submenu li {
  margin: 4px 0;
  cursor: pointer;
}

.submenu a {
  display: block;
  padding: 6px 12px;
  color: #333;
  text-decoration: none;
}

.submenu a:hover {
  background-color: #f5f5f5;
}

.submenu-toggle {
  padding: 6px 12px;
  color: #576f76;
  font-size: .85rem; /* Topics */
}

.nested-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.submenu-toggle.open .nested-submenu {
  max-height: 500px; /* dovoljno da stane cijeli meni */
}


.float-right {
  float: right;
}

.submenu-toggle > div {
  display: flex;
  align-items: left;
  justify-content: space-between;
  gap: 8px;
}

.submenu-toggle > div i:first-child {
  min-width: 20px;
  text-align: left;
}

.submenu-toggle > div span {
  flex-grow: 1;
}

/* Rotacija strelice */
.submenu-toggle.open .chevron {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.toggle-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  gap: 8px;
}

.icon-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-text i {
  min-width: 20px;
  text-align: center;
}

/* === Static navigation links (Home, Popular, Answers) === */

.sidebar-links {
  list-style: none;
  padding-left: 0;
  margin: 0 0 15px 0;
  border-bottom: 1px solid #ddd;
  padding-bottom: 12px;
}

.sidebar-links li {
  margin: 4px 0;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  text-decoration: none;
  color: #576f76;
  font-size: .85rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.sidebar-links a:hover {
  background-color: #f5f5f5;
}

.sidebar-links a.active {
  background-color: #e6ebed;
  font-weight: bold;
  color: #000;
}

.sidebar-links a.active i {
  color: #000;
}

.sidebar-links i {
  min-width: 20px;
  text-align: center;
}

.beta-label {
  font-size: 0.65rem;
  color: #d93a00;
  margin-left: auto;
  font-weight: bold;
}

