:root {
  --mms-sidebar-w: 240px;
  --mms-sidebar-bg: #1f2937;
  --mms-sidebar-fg: #d1d5db;
  --mms-sidebar-active: #111827;
  --mms-accent: #3b82f6;
}

html, body { height: 100%; }
body { background: #f3f4f6; font-size: 14px; }

/* ---- shell ---- */
.mms-shell { display: flex; min-height: 100vh; }
.mms-sidebar {
  width: var(--mms-sidebar-w);
  flex: 0 0 var(--mms-sidebar-w);
  background: var(--mms-sidebar-bg);
  color: var(--mms-sidebar-fg);
  display: flex; flex-direction: column;
}
.mms-brand {
  display: flex; align-items: center; gap: .5rem;
  padding: 1rem; font-weight: 600; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mms-brand img { height: 28px; }
.mms-nav { padding: .5rem 0; overflow-y: auto; }
.mms-nav-group-title {
  padding: .75rem 1rem .25rem; font-size: .75rem; text-transform: uppercase;
  letter-spacing: .04em; color: #9ca3af;
}
.mms-nav .nav-link {
  color: var(--mms-sidebar-fg); padding: .5rem 1rem 0.5rem 1.5rem; border-left: 3px solid transparent;
}
.mms-nav .nav-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.mms-nav .nav-link.active { background: var(--mms-sidebar-active); color: #fff; border-left-color: var(--mms-accent); }
.mms-nav .bi { width: 1.25rem; display: inline-block; }

.mms-main { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.mms-topbar {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; padding: .6rem 1.25rem; border-bottom: 1px solid #e5e7eb;
}
.mms-topbar-title { font-weight: 600; font-size: 1.05rem; }
.mms-content { padding: 1.25rem; }

/* ---- login ---- */
.mms-login-body {
  display: flex; align-items: center; justify-content: center; min-height: 100vh;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}
.mms-login-card { width: 100%; max-width: 400px; }
.mms-login-logo { height: 48px; }
.mms-login-lang { position: fixed; top: 1rem; right: 1rem; }

@media (max-width: 768px) {
  .mms-shell { flex-direction: column; }
  .mms-sidebar { width: 100%; flex-basis: auto; }
}
