/* ── Dashboard hamburger menu ── */

[data-mn-header-actions] {
  display: flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
}

[data-mn-dashboard-menu-button] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: color 150ms, background 150ms;
}

[data-mn-dashboard-menu-button]:hover {
  background: rgba(30, 41, 59, 0.7);
  color: #e2e8f0;
}

html.mn-dashboard-menu-open [data-mn-dashboard-menu-button] {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
}

[data-mn-dashboard-menu-button] svg {
  width: 1rem;
  height: 1rem;
}

/* Overlay */
[data-mn-dashboard-menu-overlay] {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms;
  border: none;
}

html.mn-dashboard-menu-open [data-mn-dashboard-menu-overlay] {
  opacity: 1;
  pointer-events: auto;
}

/* Hide admin section + redundant guide */
[data-dashboard-utility="admin"],
[data-dashboard-utility="redundant-guide"] {
  display: none !important;
}

html.mn-dashboard-menu-open body {
  overflow: hidden !important;
}

/* Drawer */
[data-mn-drawer] {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(18rem, 80vw);
  z-index: 92;
  background: #0f172a;
  border-left: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 200ms ease;
  display: flex;
  flex-direction: column;
}

html.mn-dashboard-menu-open [data-mn-drawer] {
  transform: translateX(0);
}

[data-mn-drawer-header] {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem 0.85rem;
}

[data-mn-drawer-header] button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
}

[data-mn-drawer-header] button:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

/* Menu links */
[data-mn-drawer-list] {
  list-style: none;
  margin: 0;
  padding: 0 0.75rem;
}

[data-mn-drawer-list] li {
  margin-bottom: 0.2rem;
}

[data-mn-menu-item] {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.8rem 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.06);
  border-radius: 0.65rem;
  background: transparent;
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 150ms, border-color 150ms;
}

[data-mn-menu-item]:hover {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(148, 163, 184, 0.15);
}

.mn-menu-icon {
  font-size: 1rem;
  width: 1.3rem;
  text-align: center;
  flex-shrink: 0;
}

.mn-menu-label {
  flex: 1;
}

.mn-menu-arrow {
  flex-shrink: 0;
  color: #475569;
}
