:root {
  --sidebar-w: 248px;
  --st-normal: #198754; --st-warning: #f59f00; --st-critical: #dc3545;
  --brand: #1f3a5f;
}
body { background: #f4f6f9; font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; }
.app-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--brand); color: #cfd8e6; overflow-y: auto; z-index: 1040; transition: transform .2s; }
.app-sidebar .brand { padding: 1.1rem 1.25rem; font-weight: 700; font-size: 1.05rem; color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); }
.app-sidebar .group-title { padding: 1rem 1.25rem .35rem; font-size: .72rem; letter-spacing: .06em; color: #8fa3bf; }
.app-sidebar .nav-link { color: #cfd8e6; padding: .6rem 1.25rem; display: flex; gap: .6rem; align-items: center; border-left: 3px solid transparent; }
.app-sidebar .nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.app-sidebar .nav-link.active { background: rgba(255,255,255,.12); color: #fff; border-left-color: #5ea1ff; }
.app-main { margin-left: var(--sidebar-w); min-height: 100vh; }
.app-header { background: #fff; border-bottom: 1px solid #e3e7ee; padding: .6rem 1.5rem; position: sticky; top: 0; z-index: 1030; }
.app-content { padding: 1.5rem; }
.card { border: 1px solid #e3e7ee; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.table > :not(caption) > * > * { padding: .65rem .75rem; vertical-align: middle; }
.table thead th { background: #f0f3f8; font-weight: 600; white-space: nowrap; }
.badge-status-normal { background: var(--st-normal); }
.badge-status-warning { background: var(--st-warning); color: #212529; }
.badge-status-critical { background: var(--st-critical); }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1f3a5f, #3a6ea5); padding: 1rem; }
.login-card { width: 100%; max-width: 400px; }
@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); }
  .app-sidebar.show { transform: none; }
  .app-main { margin-left: 0; }
  .app-content { padding: 1rem; }
}
