.dashboard-menu-wrapper {
  width: 260px;
  min-width: 260px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  padding: 1.25rem 1rem;
  transition: all 0.3s ease;
}

.dashboard-menu-wrapper.collapsed {
  width: 70px;
  min-width: 70px;
  padding: 1.25rem 0.75rem;
}

.dashboard-menu-wrapper.collapsed .menu-item {
  justify-content: center;
  padding: 0.75rem;
  min-height: 48px;
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
}

.dashboard-menu-wrapper.collapsed .menu-item .oi {
  margin-right: 0;
  font-size: 1.25rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  flex-shrink: 0;
}

.dashboard-menu-wrapper.collapsed .menu-item:hover {
  background: #f3f4f6;
}

.dashboard-menu-wrapper.collapsed .menu-item:hover .oi {
  color: #111827;
}

.dashboard-menu-wrapper.collapsed .menu-item.active {
  background: #6b7280;
}

.dashboard-menu-wrapper.collapsed .menu-item.active .oi {
  color: #ffffff;
}

.dashboard-menu-wrapper.collapsed .menu-item.active:hover {
  background: #4b5563;
}

/* Скрываем текст в свёрнутом меню */
.dashboard-menu-wrapper.collapsed .menu-title,
.dashboard-menu-wrapper.collapsed .menu-item-text {
  display: none !important;
}

/* Кнопка в шапке */
.menu-toggle-btn-header {
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all 0.2s ease;
  height: 48px;
  width: 48px;
}

.menu-toggle-btn-header:hover {
  background: #f3f4f6;
  color: #2563eb;
}

.menu-toggle-btn-header .oi {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #9ca3af;
  letter-spacing: 0.05em;
  margin: 0 0 1rem 0;
  padding: 0 0.75rem;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.menu-item:hover {
  background: #f3f4f6;
  color: #111827;
}

.menu-item.active {
  background: #111827;
  color: #ffffff;
  font-weight: 600;
}

.menu-item.active:hover {
  background: #000000;
  color: #ffffff;
}

.menu-item .oi {
  font-size: 1rem;
  margin-right: 0.625rem;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .dashboard-menu-wrapper {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem;
  }

  .menu-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .menu-item {
    flex: 1 1 auto;
    justify-content: center;
    font-size: 0.8125rem;
    padding: 0.5rem 0.625rem;
  }

  .menu-title {
    display: none;
  }
}
