/* i8studio MGR — Dark theme styling matching PDF Specification */
:root {
  --bg: #0f131c;
  --bg-card: #181d2a;
  --bg-card-alt: #1e2434;
  --panel: #161b26;
  --panel-border: #262e40;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);
  
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --primary: #00c2ff;       /* i8 blue/cyan */
  --primary-hover: #38bdf8;
  --accent-orange: #f97316;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-yellow: #f59e0b;
  --accent-purple: #a855f7;

  --r: 8px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-size: 13.5px; line-height: 1.5; }

a { color: var(--primary); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #262e40; border-radius: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }

/* Typography */
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: #fff; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.small { font-size: 11.5px; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* Flex & Grid Utilities */
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 8px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mt { margin-top: 14px; }
.mb { margin-bottom: 14px; }

/* ========================================================
   SIDEBAR & MAIN LAYOUT (MATCHING I8 REFERENCE)
   ======================================================== */
.app-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

/* Sidebar Container */
.sidebar {
  width: 245px;
  flex: none;
  background: #11141c;
  border-right: 1px solid #1c2230;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 60;
  user-select: none;
}

/* Sidebar Brand Header */
.sidebar-brand-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  min-height: 64px;
  border-bottom: 1px solid #1c2230;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}
.sidebar-brand-box:hover {
  background: rgba(255, 255, 255, 0.03);
}
.sidebar-brand-logo-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.sidebar-brand-logo-wrap .brand-logo-img {
  height: 48px;
  max-height: 52px;
  max-width: 175px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(123, 192, 63, 0.35));
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}
.sidebar-brand-box:hover .brand-logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 3px 14px rgba(123, 192, 63, 0.6));
}
.brand-edit-badge {
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(123, 192, 63, 0.9);
  color: #0b2207;
  border: 1px solid rgba(163, 230, 53, 0.8);
  cursor: pointer;
  white-space: nowrap;
}
.sidebar-brand-box:hover .brand-edit-badge {
  opacity: 1;
  transform: scale(1);
}

/* Sidebar Nav */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-group-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #64748b;
  text-transform: uppercase;
  padding: 4px 10px 6px;
}
.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
}
.sidebar-item:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}
.sidebar-item.active {
  color: #ffffff;
  background: #1a2232;
  font-weight: 700;
}
.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: #00c2ff;
  border-radius: 0 2px 2px 0;
}
.sidebar-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sidebar-item-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex: none;
  opacity: 0.85;
}
.sidebar-item.active .sidebar-item-icon {
  opacity: 1;
}
.sidebar-item-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  line-height: 1.4;
  box-shadow: 0 1px 6px rgba(239, 68, 68, 0.4);
}

/* Sidebar Profile Card at Bottom */
.sidebar-profile-box {
  padding: 10px 10px 14px;
  border-top: 1px solid #1b202e;
  background: #0d1017;
  position: relative;
}
.sidebar-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #141824;
  border: 1px solid #232c3d;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sidebar-profile-card:hover {
  background: #1b2232;
  border-color: #38bdf8;
  transform: translateY(-1px);
}
.sidebar-profile-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sidebar-profile-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sidebar-profile-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-profile-role {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-profile-switch {
  color: #64748b;
  font-size: 15px;
  padding-left: 6px;
  flex: none;
}
.sidebar-profile-card:hover .sidebar-profile-switch {
  color: #38bdf8;
}

/* Sidebar Profile Flyout Popup */
.sidebar-profile-card.active {
  background: #1b2232;
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}
.sidebar-profile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: transparent;
}
.sidebar-profile-flyout {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 8px;
  right: 8px;
  background: #141824;
  border: 1px solid #232c3d;
  border-radius: 12px;
  padding: 14px 14px 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
  z-index: 75;
  display: flex;
  flex-direction: column;
  gap: 13px;
  animation: spfFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes spfFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.spf-user-row {
  display: flex;
  align-items: center;
  gap: 11px;
}
.spf-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13.5px;
  flex: none;
}
.spf-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.spf-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.25;
}
.spf-sub {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
  line-height: 1.3;
}
.spf-role-team {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
  line-height: 1.3;
}
.spf-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.spf-section-label {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
}
.spf-seg {
  display: flex;
  background: #0d1017;
  border: 1px solid #1e2636;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.spf-seg-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 500;
  padding: 6px 4px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.spf-seg-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.04);
}
.spf-seg-btn.active {
  background: #232c3d;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.spf-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 2px;
}
.spf-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.spf-logout-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}
.spf-logout-icon {
  display: inline-block;
  vertical-align: middle;
}
.spf-switch-btn {
  background: transparent;
  border: none;
  color: #38bdf8;
  font-size: 11px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.15s;
}
.spf-switch-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  text-decoration: underline;
}

/* Main Content Wrapper */
.main-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* Header / Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  min-height: 54px;
  background: rgba(13, 17, 26, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
}
.topbar-breadcrumbs a {
  color: #94a3b8;
  text-decoration: none;
}
.topbar-breadcrumbs a:hover {
  color: #38bdf8;
}
.topbar-breadcrumbs .crumb-sep {
  opacity: 0.4;
  font-size: 10px;
}
.topbar-breadcrumbs .crumb-current {
  color: #f1f5f9;
  font-weight: 700;
}
.topbar-chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
.topbar-chat-btn:hover {
  background: rgba(2, 132, 199, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Quick Search Button in Topbar */
.topbar-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.topbar-search-btn:hover {
  background: rgba(51, 65, 85, 0.8);
  border-color: rgba(56, 189, 248, 0.4);
  color: #f1f5f9;
}
.search-hint { font-weight: 500; }
.search-kbd {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  font-family: inherit;
}

/* Topbar Right Tools */
.top-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.notif-bell {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.15s;
}
.notif-bell:hover { background: rgba(255, 255, 255, 0.08); }
.notif-bell .badge-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--accent-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
}
.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: grid;
  place-items: center;
}
.user-pill select {
  background: transparent;
  border: 0;
  color: #fff;
  font-weight: 600;
  font-size: 12.5px;
  outline: none;
  cursor: pointer;
}
.user-pill select option {
  background: #181d2a;
  color: #f1f5f9;
}
.user-pill select optgroup {
  background: #0f131c;
  color: #00c2ff;
  font-weight: 800;
  font-size: 11px;
  font-style: normal;
}
.role-chip {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border: 1px solid;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

/* Content Container */
.content {
  flex: 1;
  padding: 18px 24px 40px;
  max-width: 1680px;
  margin: 0 auto;
  width: 100%;
}
body[data-route="kanban"] .content,
.content:has(.kanban-board-8col) {
  max-width: 100%;
  padding: 14px 16px 24px;
}

/* Screen Title Header in PDF Style */
.screen-title-banner {
  margin-bottom: 16px;
}
.screen-tag {
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #f1f5f9;
}

/* Dev / IT Note Box (Red Dashed Box in PDF) */
.dev-note-box {
  margin-top: 20px;
  border: 2px dashed #dc2626;
  background: rgba(220, 38, 38, 0.04);
  border-radius: 6px;
  padding: 12px 16px;
  color: #fca5a5;
  font-size: 12px;
  line-height: 1.55;
  page-break-inside: avoid;
}
.dev-note-box .note-title {
  color: #ef4444;
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* macOS Window Frame (Page 2 & Others) */
.mac-window {
  background: #161a25;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  margin-bottom: 16px;
}
.mac-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #121620;
  border-bottom: 1px solid var(--panel-border);
}
.mac-dots {
  display: flex;
  gap: 6px;
}
.mac-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.mac-window-body {
  padding: 16px;
}

/* Panels */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--panel-border);
  border-radius: var(--r);
  overflow: hidden;
}
.panel-h {
  padding: 12px 16px;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.015);
}
.panel-b { padding: 14px 16px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary, .btn.primary {
  background: #0077ff;
  border-color: #0077ff;
  color: #fff;
}
.btn-primary:hover, .btn.primary:hover { background: #0066dd; }

.btn-success, .btn.success {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}
.btn-success:hover, .btn.success:hover { background: #059669; }

.btn-danger, .btn.danger {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.btn-orange, .btn.warn {
  background: #f97316;
  border-color: #f97316;
  color: #fff;
}

.btn-gray {
  background: #334155;
  border-color: #475569;
  color: #e2e8f0;
}

.btn.sm { padding: 4px 10px; font-size: 11.5px; }

/* Inputs & Form Controls */
.inp, select.inp, textarea.inp {
  background: #11151f;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
  width: 100%;
}
.inp:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 194, 255, 0.2);
}
textarea.inp { resize: vertical; min-height: 80px; }

.field { display: flex; flex-direction: column; gap: 4px; }
.field > span { font-size: 11.5px; color: var(--text-muted); font-weight: 600; }

/* ========================================================
   LOGIN PAGE (Split-screen Architectural Design)
   ======================================================== */
body.page-login .sidebar,
body.page-login .topbar {
  display: none !important;
}
body.page-login .main-wrapper {
  margin-left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
}
body.page-login .content {
  padding: 0 !important;
  max-width: none !important;
  height: 100vh !important;
  overflow: hidden !important;
}

.login-split-page {
  display: flex;
  width: 100vw;
  height: 100vh;
  background: #080b11;
  overflow: hidden;
  position: relative;
}

/* LEFT COLUMN: Visual & Branding */
.login-left-col {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 52px;
  position: relative;
  background: radial-gradient(circle at 60% 50%, rgba(56, 189, 248, 0.09) 0%, rgba(99, 102, 241, 0.06) 35%, rgba(8, 11, 17, 0.98) 75%), #080b11;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}

.login-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.login-brand-logo-img {
  height: 38px;
  max-width: 160px;
  object-fit: contain;
}

.login-brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.login-brand-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
}

.login-brand-sub {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

/* Center Architectural Illustration */
.login-illustration-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  user-select: none;
  pointer-events: none;
}

.login-illustration-svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  max-height: 420px;
  filter: drop-shadow(0 15px 35px rgba(0, 194, 255, 0.12));
}

/* Bottom Text */
.login-left-footer {
  z-index: 2;
}

.login-slogan-main {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: #f8fafc;
  letter-spacing: -0.5px;
}

.login-slogan-jp {
  font-size: 14px;
  color: #94a3b8;
  margin-top: 10px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.login-copy-text {
  font-size: 11.5px;
  color: #475569;
  margin-top: 24px;
}

/* RIGHT COLUMN: Form & Demo Accounts */
.login-right-col {
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d121d;
  overflow-y: auto;
  padding: 32px 24px;
  box-sizing: border-box;
}

.login-form-container {
  width: 100%;
  max-width: 440px;
}

.login-heading-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.login-heading-sub {
  font-size: 13.5px;
  color: #94a3b8;
  margin-bottom: 24px;
}

.login-form-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-field-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
}

.login-input {
  width: 100%;
  background: #141b27;
  border: 1px solid #232c3d;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: #f8fafc;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
  font-family: inherit;
}

.login-input:focus {
  border-color: #38bdf8;
  background: #162030;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.login-row-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 12.5px;
}

.login-remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
}

.login-remember-label input {
  accent-color: #38bdf8;
  cursor: pointer;
}

.login-forgot-link {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
  cursor: pointer;
}

.login-forgot-link:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.login-submit-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
  transition: all 0.2s ease;
}

.login-submit-btn:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 6px 22px rgba(79, 70, 229, 0.45);
  transform: translateY(-1px);
}

.login-submit-btn:active {
  transform: translateY(0);
}

/* DEMO ACCOUNTS SECTION */
.login-demo-section {
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 20px;
}

.login-demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.login-demo-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.login-demo-hint {
  font-size: 11px;
  color: #38bdf8;
  font-weight: 600;
}

.login-demo-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.login-demo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: #141b27;
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.15s ease;
}

.login-demo-card:hover {
  background: #1a2335;
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateX(3px);
}

.login-demo-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.login-demo-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.login-demo-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.25;
}

.login-demo-role {
  font-size: 11px;
  color: #94a3b8;
}

.login-demo-code {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 7px;
  border-radius: 4px;
}

.login-footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  font-size: 11.5px;
  color: #475569;
}

@media (max-width: 860px) {
  .login-left-col { display: none; }
  .login-right-col { width: 100%; }
}

/* ==========================================================================
   Light Theme System Overrides
   ========================================================================== */
html.theme-light, body.theme-light {
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-alt: #f1f5f9;
  --panel: #ffffff;
  --panel-border: #e2e8f0;
  --line: rgba(51, 65, 85, 0.12);
  --line-strong: rgba(51, 65, 85, 0.22);
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  color-scheme: light;
  background: #f8fafc;
  color: #0f172a;
}
html.theme-light .app-sidebar {
  background: #ffffff;
  border-right-color: #e2e8f0;
}
html.theme-light .sidebar-brand {
  border-bottom-color: #e2e8f0;
}
html.theme-light .sidebar-brand-name {
  color: #0f172a;
}
html.theme-light .sidebar-brand-sub {
  color: #64748b;
}
html.theme-light .sidebar-group-label {
  color: #94a3b8;
}
html.theme-light .sidebar-item {
  color: #475569;
}
html.theme-light .sidebar-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}
html.theme-light .sidebar-item.active {
  background: #e0f2fe;
  color: #0284c7;
}
html.theme-light .sidebar-profile-box {
  background: #f8fafc;
  border-top-color: #e2e8f0;
}
html.theme-light .sidebar-profile-card {
  background: #ffffff;
  border-color: #e2e8f0;
}
html.theme-light .sidebar-profile-card:hover, html.theme-light .sidebar-profile-card.active {
  background: #f1f5f9;
  border-color: #0284c7;
}
html.theme-light .sidebar-profile-name {
  color: #0f172a;
}
html.theme-light .sidebar-profile-role {
  color: #64748b;
}
html.theme-light .sidebar-profile-flyout {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
}
html.theme-light .spf-name {
  color: #0f172a;
}
html.theme-light .spf-sub {
  color: #64748b;
}
html.theme-light .spf-role-team {
  color: #94a3b8;
}
html.theme-light .spf-section-label {
  color: #64748b;
}
html.theme-light .spf-seg {
  background: #f1f5f9;
  border-color: #e2e8f0;
}
html.theme-light .spf-seg-btn {
  color: #64748b;
}
html.theme-light .spf-seg-btn:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.04);
}
html.theme-light .spf-seg-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
html.theme-light .spf-logout-btn {
  color: #64748b;
}
html.theme-light .spf-logout-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}
html.theme-light .topbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: #e2e8f0;
}
html.theme-light h1, html.theme-light h2, html.theme-light h3, html.theme-light h4 {
  color: #0f172a;
}
html.theme-light .card {
  background: #ffffff;
  border-color: #e2e8f0;
}
html.theme-light .table th {
  background: #f1f5f9;
  color: #475569;
}
html.theme-light .table td {
  border-bottom-color: #f1f5f9;
}

