.sidebar {
  min-height: 100vh;
  width: 250px;
  transition: width 0.4s ease;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background-color: #ffffff;
  border-radius: 10px;
}

/* מצב סגור של הסרגל */
.sidebar.collapsed {
  width: 70px;
  border-right: 4px solid #ffffff; /* פס לבן נקי בצד */
}

.sidebar-section h6,
.sidebar-section-header {
  font-weight: 700;
  font-size: 0.9em;
  color: #444; /* שחור עדין */
  margin-bottom: 10px;
  border-bottom: 1px solid #f1f1f1;
  padding-bottom: 4px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.sidebar-section-header:hover {
  color: #000; /* שחור מלא בהובר */
}

.sidebar .nav-link {
  padding: 8px 12px;
  border-radius: 6px;
  color: #212529;
  transition: background 0.2s, color 0.2s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background-color: #f4f4f4;
  color: #000;
}

/* אקורדיון */
.sidebar-section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.sidebar-section-header.active + .sidebar-section-content {
  max-height: 500px; /* מספיק כדי להכיל את הפריטים */
}

/* כפתור שלושת הפסים */
#toggleSidebar {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  margin: 8px 0 12px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#toggleSidebar i {
  font-size: 1.8rem;
  color: #000; /* צבע שחור */
  transition: transform 0.3s ease, color 0.3s ease;
}

#toggleSidebar:hover i {
  color: #333;
  transform: scale(1.1);
}
/* תוכן אקורדיון סגור כברירת מחדל */
.sidebar-section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* כשיש active – נפתח */
.sidebar-section-header.active + .sidebar-section-content {
  max-height: 500px; /* מספיק כדי להכיל פריטים */
}