/* Gampoong Workspace (gw.gampoong.com) Unified Design System for KINESS */
:root {
  color-scheme: light;
}
html.dark {
  color-scheme: dark;
}

body {
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif !important;
  background-color: #f8fafc;
  color: #0f172a;
}
html.dark body {
  background-color: #020617 !important;
  color: #f1f5f9 !important;
}

/* Sleek Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.35); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.6); }

/* Glassmorphism Top Header */
.gw-glass-header {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #e2e8f0 !important;
}
html.dark .gw-glass-header {
  background: rgba(15, 23, 42, 0.8) !important;
  border-bottom-color: #1e293b !important;
}

/* ==================== LEFT SIDEBAR (gw.gampoong.com Light/Dark Style) ==================== */
.k-lnb-container {
  background: #ffffff !important;
  border-right: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}
html.dark .k-lnb-container {
  background: #0f172a !important;
  border-right-color: #1e293b !important;
  color: #cbd5e1 !important;
}

.lnbTop {
  padding: 16px 14px 12px !important;
  background: transparent !important;
  border-bottom: 1px solid #f1f5f9 !important;
}
html.dark .lnbTop {
  border-bottom-color: #1e293b !important;
}
.lnbTop h2 a {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em !important;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lnbTop h2 a::before {
  content: 'K';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
  flex-shrink: 0;
}
html.dark .lnbTop h2 a {
  color: #f8fafc !important;
}

.adminInfo {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 10px !important;
  margin-top: 12px !important;
}
html.dark .adminInfo {
  background: rgba(30, 41, 59, 0.6) !important;
  border-color: #1e293b !important;
}
.avatar-circle {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.25) !important;
}
.adminInfo span {
  font-size: 13px !important;
  color: #0f172a !important;
}
html.dark .adminInfo span {
  color: #f8fafc !important;
}
.adminInfo strong {
  color: #64748b !important;
}
#lnb-admin-id {
  color: #4f46e5 !important;
}
html.dark #lnb-admin-id {
  color: #818cf8 !important;
}

.topLink {
  margin-top: 10px !important;
  gap: 6px !important;
}
.topLink a {
  flex: 1;
  text-align: center;
  border-radius: 10px !important;
  padding: 6px 10px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}
.topLink a.btn_logout {
  background: #fff1f2 !important;
  color: #e11d48 !important;
  border: 1px solid #fecdd3 !important;
}
.topLink a.btn_logout:hover {
  background: #ffe4e6 !important;
}
html.dark .topLink a.btn_logout {
  background: rgba(244, 63, 94, 0.14) !important;
  color: #fda4af !important;
  border-color: rgba(244, 63, 94, 0.25) !important;
}
.topLink a.btn_edit {
  background: #eef2ff !important;
  color: #4338ca !important;
  border: 1px solid #c7d2fe !important;
}
.topLink a.btn_edit:hover {
  background: #e0e7ff !important;
}
html.dark .topLink a.btn_edit {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #a5b4fc !important;
  border-color: rgba(99, 102, 241, 0.25) !important;
}

.role-switcher-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 8px 10px !important;
}
html.dark .role-switcher-box {
  background: rgba(30, 41, 59, 0.6) !important;
  border-color: #334155 !important;
}
.role-switcher-label {
  color: #64748b !important;
}
#role-select {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  color: #0f172a !important;
}
html.dark #role-select {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

/* Quick Menu Filter */
.lnb-search-wrap {
  padding: 10px 12px 6px;
}
.lnb-search-input {
  width: 100%;
  padding: 7px 12px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lnb-search-input:focus {
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
html.dark .lnb-search-input {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

/* System Status Card */
.lnb_system {
  margin: 6px 10px 10px !important;
  padding: 10px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
}
html.dark .lnb_system {
  background: rgba(30, 41, 59, 0.5) !important;
  border-color: #1e293b !important;
}
.lnb_system h3 {
  padding: 0 0 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-align: left !important;
}
.lnb_system .check-status {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 8px;
  color: #475569 !important;
  margin-bottom: 8px !important;
}
html.dark .lnb_system .check-status {
  background: #0f172a;
  border-color: #334155;
  color: #cbd5e1 !important;
}
.check_num {
  color: #4f46e5 !important;
  font-weight: 800;
}
html.dark .check_num {
  color: #818cf8 !important;
}
.lnb_system ul { border-top: none !important; display: flex; flex-direction: column; gap: 2px; }
.lnb_system li { border-bottom: none !important; }
.lnb_system a {
  border-radius: 8px !important;
  padding: 6px 8px !important;
  color: #334155 !important;
}
.lnb_system a:hover {
  background: #eef2ff !important;
  color: #4338ca !important;
}
html.dark .lnb_system a { color: #cbd5e1 !important; }
html.dark .lnb_system a:hover { background: rgba(99, 102, 241, 0.16) !important; color: #ffffff !important; }

/* Accordion Categories */
.lnbMenuBox { border-top: none !important; margin: 4px 8px !important; }
.lnbMenuBox p.fstMenu {
  background: transparent !important;
  border-radius: 10px !important;
  padding: 9px 10px !important;
  color: #334155 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
}
.lnbMenuBox p.fstMenu:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
.lnbMenuBox p.fstMenu.active,
.lnbMenuBox p.fstMenu.on {
  background: #eef2ff !important;
  color: #4338ca !important;
}
html.dark .lnbMenuBox p.fstMenu { color: #cbd5e1 !important; }
html.dark .lnbMenuBox p.fstMenu:hover { background: #1e293b !important; color: #ffffff !important; }
html.dark .lnbMenuBox p.fstMenu.active,
html.dark .lnbMenuBox p.fstMenu.on { background: rgba(99, 102, 241, 0.16) !important; color: #a5b4fc !important; }

.dep2_menu {
  background: transparent !important;
  margin-left: 10px !important;
  padding-left: 8px !important;
  border-left: 1px solid #e2e8f0 !important;
}
html.dark .dep2_menu { border-left-color: #1e293b !important; }
.dep2_menu li { border-bottom: none !important; margin: 1px 0; }
.dep2_menu li a {
  border-radius: 8px !important;
  padding: 6px 10px !important;
  color: #475569 !important;
  font-size: 12px !important;
}
.dep2_menu li a:before {
  content: '' !important;
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: #94a3b8;
  margin-right: 8px !important;
}
.dep2_menu li a:hover {
  background: #f1f5f9 !important;
  color: #4f46e5 !important;
  padding-left: 12px !important;
}
.dep2_menu li a:hover:before { background: #4f46e5; }
html.dark .dep2_menu li a { color: #94a3b8 !important; }
html.dark .dep2_menu li a:hover { background: #1e293b !important; color: #ffffff !important; }

/* Fix yellow text in light sidebar */
.k-lnb-container .text-\[\#fff200\] { color: #4f46e5 !important; }
html.dark .k-lnb-container .text-\[\#fff200\] { color: #a5b4fc !important; }
.k-lnb-container .text-amber-300 { color: #d97706 !important; }
.k-lnb-container .text-emerald-300 { color: #059669 !important; }
.k-lnb-container .text-cyan-300,
.k-lnb-container .text-sky-300 { color: #0284c7 !important; }
.k-lnb-container .text-purple-300 { color: #7c3aed !important; }
.k-lnb-container .text-blue-300 { color: #2563eb !important; }

/* Branch Accordion */
.branch-acc-header {
  background: #f8fafc !important;
  border-radius: 8px !important;
  margin: 2px 0 !important;
  padding: 7px 10px !important;
  border-bottom: none !important;
  color: #334155 !important;
}
.branch-acc-header:hover { background: #f1f5f9 !important; color: #0f172a !important; }
.branch-acc-header.active { background: #eef2ff !important; color: #4338ca !important; }
html.dark .branch-acc-header { background: rgba(30, 41, 59, 0.5) !important; color: #cbd5e1 !important; }
html.dark .branch-acc-header.active { background: rgba(99, 102, 241, 0.16) !important; color: #a5b4fc !important; }

.branch-acc-body {
  background: transparent !important;
  margin-left: 8px !important;
  padding-left: 6px !important;
  border-left: 1px dashed #cbd5e1 !important;
}
html.dark .branch-acc-body { border-left-color: #334155 !important; }
.branch-acc-body li a { padding-left: 10px !important; font-size: 11.5px !important; }

/* Sidebar Footer */
.k-lnb-container > div:last-child {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  color: #64748b !important;
}
html.dark .k-lnb-container > div:last-child {
  background: #020617 !important;
  border-top-color: #1e293b !important;
}
#footer-grade-text { color: #4f46e5 !important; }
html.dark #footer-grade-text { color: #818cf8 !important; }

/* Main Content Dark Mode Support */
html.dark main,
html.dark section {
  background-color: #020617 !important;
  color: #e2e8f0 !important;
}
html.dark .bg-white {
  background-color: #0f172a !important;
  border-color: #1e293b !important;
  color: #e2e8f0 !important;
}
html.dark .bg-slate-50,
html.dark .bg-slate-50\/60,
html.dark .bg-slate-50\/70 {
  background-color: #0b1120 !important;
}
html.dark .text-slate-900,
html.dark .text-slate-800,
html.dark .text-slate-700 {
  color: #e2e8f0 !important;
}
html.dark .border-slate-200,
html.dark .border-slate-100 {
  border-color: #1e293b !important;
}
html.dark input,
html.dark select,
html.dark textarea {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

