#dashboard-view { min-height: 100vh; background: var(--bg); }
#dashboard-view.d-none { display: none; }
#topbar {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: var(--sidebar-w);
  display: flex;
  height: var(--topbar-h);
  align-items: center;
  justify-content: space-between;
  padding: 0 1.4rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  transition: left .25s ease;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-toggle { color: var(--text) !important; }
.topbar-brand-icon { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
.topbar-brand { color: var(--text); font-size: 1rem; font-weight: 750; letter-spacing: -.02em; }
.topbar-user-info { line-height: 1.3; text-align: right; }
.topbar-greeting { display: block; color: var(--text-muted); font-size: .68rem; }
.topbar-user { color: var(--text); font-size: .82rem; }
.topbar-avatar { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--border); border-radius: 9px; background: var(--primary-light); color: var(--primary); font-size: .82rem; font-weight: 750; }
.btn-topbar-icon, .btn-topbar-logout { display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text-muted); }
.btn-topbar-icon:hover { color: var(--primary); border-color: #bdc9eb; background: var(--primary-light); }
.btn-topbar-logout:hover { color: var(--danger); border-color: #efbdc7; background: var(--danger-light); }
:root[data-theme="dark"] #topbar { background: rgba(17,17,17,.94); }
:root[data-theme="dark"] .topbar-avatar { border-color: var(--border); background: var(--surface-soft); }
:root[data-theme="dark"] .btn-topbar-icon:hover { border-color: var(--border); }
#sidebar { position: fixed; z-index: 200; top: 0; bottom: 0; left: 0; display: flex; width: var(--sidebar-w); flex-direction: column; border-right: 1px solid var(--border); background: var(--sidebar-bg); transition: transform .25s ease; }
.sidebar-header { display: flex; min-height: var(--topbar-h); align-items: center; gap: 10px; padding: 1rem 1.1rem; border-bottom: 1px solid var(--border); }
.sidebar-brand-icon { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: var(--text); color: #fff; font-size: .85rem; }
.sidebar-brand-text { line-height: 1.2; }
.sidebar-title { color: var(--text); font-size: .9rem; font-weight: 650; letter-spacing: -.02em; }
.sidebar-sub { color: var(--text-muted); font-size: .66rem; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 1rem .7rem; }
.sidebar-menu, .sidebar-submenu { margin: 0; padding: 0; list-style: none; }
.sidebar-menu > li { margin-bottom: 5px; }
.sidebar-item { display: flex; align-items: center; gap: 10px; padding: .58rem .7rem; border: 1px solid transparent; border-radius: 7px; color: var(--sidebar-text); font-size: .78rem; text-decoration: none; transition: background var(--transition), color var(--transition), border-color var(--transition); }
.sidebar-item:hover { border-color: var(--border); background: var(--sidebar-hover); color: var(--text); }
.sidebar-item.active { border-color: var(--border); background: var(--sidebar-active); color: var(--text); font-weight: 600; }
.sidebar-item-icon { width: 18px; flex-shrink: 0; color: #a3a3a3; font-size: .8rem; text-align: center; }
.sidebar-item.active .sidebar-item-icon { color: var(--text); }
.sidebar-item-arrow { width: 13px; color: #a3a3a3; font-size: .6rem; transition: transform .2s ease; }
.sidebar-sub-toggle.open .sidebar-item-arrow { transform: rotate(90deg); }
.sidebar-submenu { max-height: 0; overflow: hidden; border-left: 1px solid var(--border); transition: max-height .25s ease; }
.sidebar-submenu.open { max-height: 360px; }
.sidebar-sub-item { margin-left: .65rem; padding: .5rem .7rem !important; font-size: .75rem !important; }
.sidebar-footer { padding: .85rem 1.2rem; border-top: 1px solid var(--border); text-align: center; }
.sidebar-footer small { color: var(--text-muted) !important; font: .65rem monospace; letter-spacing: .08em; }
.sidebar-overlay { display: none; position: fixed; z-index: 150; inset: 0; background: rgba(15,24,42,.45); }
#main-content { min-height: calc(100vh - var(--topbar-h)); margin-top: var(--topbar-h); margin-left: var(--sidebar-w); padding: 1.5rem; transition: margin-left .25s ease; }
.page-content { animation: fadeInUp .3s ease; }
.welcome-container { display: flex; min-height: calc(100vh - var(--topbar-h) - 3.4rem); align-items: center; justify-content: center; }
.welcome-card { width: 100%; max-width: 520px; padding: 3rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.welcome-icon { display: grid; width: 58px; height: 58px; margin: 0 auto; place-items: center; border-radius: 16px; background: var(--primary-light); color: var(--primary); font-size: 1.45rem; }
.welcome-title { color: var(--text); font-size: 1.45rem; font-weight: 750; }
.welcome-text { font-size: .86rem; }
.icon-brand { width: 28px; height: 28px; object-fit: contain; vertical-align: middle; }
.topbar-brand-icon .icon-brand { width: 20px; height: 20px; }
.sidebar-brand-icon .icon-brand { width: 20px; height: 20px; }
@media (max-width: 991.98px) { #sidebar { transform: translateX(-100%); } #sidebar.sidebar-open { transform: translateX(0); } .sidebar-overlay.active { display: block; } #topbar { left: 0; } #main-content { margin-left: 0; } }
@media (max-width: 575.98px) { #topbar { padding: 0 1rem; } .topbar-user-info { display: none; } #main-content { padding: 1rem; } }
