/* ============================================================
   LOGIN SCREEN STYLES
   The login screen is fully styled by the inline <style> block
   in index.html. Keeping a duplicate here caused maintenance
   drift — the inline styles won unconditionally because they use
   !important on every property. Removed.
   ============================================================ */

/* APP SHELL */
.app-shell { display: flex; min-height: 100vh; width: 100%; }
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 50; transition: transform .25s ease;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 22px 20px 18px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sidebar-brand img { height: 28px; filter: brightness(0) invert(1); }
.sidebar-brand .name { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 14px; letter-spacing: .01em; }
.sidebar-brand .sub { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; color: rgba(255,255,255,0.45); letter-spacing: .1em; text-transform: uppercase; }
.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.sidebar-link {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 13px; border-radius: var(--radius-sm);
  border: none; background: none; color: rgba(255,255,255,0.62); font-size: 13.5px; font-weight: 600; text-align: left;
  margin-bottom: 3px; transition: background .15s ease, color .15s ease;
}
.sidebar-link svg { flex-shrink: 0; }
.sidebar-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sidebar-link.is-active { background: rgba(124,58,237,0.22); color: #fff; }
.sidebar-link .count {
  margin-left: auto; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px;
  background: rgba(255,255,255,0.12); padding: 2px 7px; border-radius: 999px;
}
.sidebar-section-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .12em; color: rgba(255,255,255,0.35); text-transform: uppercase; padding: 16px 13px 6px; }
.sidebar-foot { padding: 14px 16px 18px; border-top: 1px solid rgba(255,255,255,0.08); }
.sidebar-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sidebar-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--navylite));
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0;
}
.sidebar-user-info { min-width: 0; }
.sidebar-user-name { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: .06em; }
.sidebar-logout {
  width: 100%; padding: 9px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.14);
  background: transparent; color: rgba(255,255,255,0.75); font-size: 12.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.sidebar-logout:hover { background: rgba(255,255,255,0.06); color: #fff; }

.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247,247,251,0.92); border-bottom: 1px solid var(--border-color);
  padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  transition: background 0.3s, border-color 0.3s;
}
.topbar-title { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.mobile-menu-btn { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; width: 38px; height: 38px; align-items: center; justify-content: center; }
.security-chip {
  display: flex; align-items: center; gap: 6px; font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  color: var(--success); background: var(--success-bg); border: 1px solid rgba(47,133,90,0.18);
  padding: 6px 11px; border-radius: 999px; white-space: nowrap;
}
.theme-toggle-btn {
  background: none; border: 1px solid var(--border-color); border-radius: 999px;
  padding: 6px 12px; display: flex; align-items: center; gap: 6px; font-size: 12px;
  color: var(--text-primary); background: var(--bg-card); transition: background 0.2s;
}
.theme-toggle-btn:hover { background: var(--paper); }
.theme-toggle-btn svg { width: 16px; height: 16px; }

/* ============================================================
   PAGE CONTAINER — full width (fixes right-side empty space)
   ============================================================ */
.page {
  padding: 26px 28px 60px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
