/* ============================================================
 * MDMS — Shared base styles
 * All user-facing pages import this file.
 * ============================================================ */

* { box-sizing: border-box; }

html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

body {
  margin: 0; min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
  color: #e2e8f0;
}

/* ── Site Bar ── */

.site-bar {
  background: rgba(8,10,16,0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky; top: 0; z-index: 100;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px; line-height: 1.4;
}

.site-bar__inner {
  max-width: 1240px; margin: 0 auto; padding: 8px 16px;
  display: flex; align-items: center; gap: 16px;
}

.site-bar__brand {
  font-weight: 900; font-size: 16px; color: #e2e8f0;
  text-decoration: none; letter-spacing: 0.06em;
  flex-shrink: 0;
}

/* ── Navigation ── */

.site-bar__nav {
  display: flex; align-items: center; gap: 2px;
  flex: 1;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.site-bar__nav::-webkit-scrollbar { display: none; }

.site-bar__nav-link {
  font-size: 13px; font-weight: 600;
  color: #64748b;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: 0.15s ease;
  transition-property: color, background;
}
.site-bar__nav-link:hover {
  color: #e2e8f0;
  background: rgba(255,255,255,0.06);
}
.site-bar__nav-link.is-active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}

/* ── Right section (user / login) ── */

.site-bar__right {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.site-bar__user {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: #94a3b8;
}
.site-bar__avatar { border-radius: 50%; vertical-align: middle; }

.site-bar__link {
  font-size: 13px; color: #64748b;
  text-decoration: none;
  transition: color 0.15s;
}
.site-bar__link:hover { color: #e2e8f0; }

.site-bar__login {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; background: #5865F2; color: #fff;
  border-radius: 8px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: background 0.15s;
}
.site-bar__login:hover { background: #4752c4; }

/* ── Page container ── */

.page-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 16px 80px;
}
