/* ============================================================
   IBschool LMS - 공통 스타일시트
   ManageBac 스타일의 화면 구성을 참고해 자체 제작한 디자인 시스템
   ============================================================ */

:root {
  --bg: #f0f2f7;
  --card: #ffffff;
  --border: #e3e7ef;
  --border-strong: #d3d9e5;
  --text: #22293a;
  --text-2: #5b6478;
  --text-3: #8a93a8;
  --primary: #2e6ce0;
  --primary-hover: #2159c4;
  --primary-soft: #e9f0fd;
  --green: #22a06b;
  --green-soft: #e6f6ef;
  --red: #d84545;
  --red-soft: #fdecec;
  --orange: #e08a2e;
  --orange-soft: #fdf3e6;
  --purple: #7a5af5;
  --sidebar-w: 236px;
  --topbar-h: 58px;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(30, 40, 70, .07);
  font-size: 15px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

/* ---------------- 상단 바 ---------------- */
/* ---------------- 상단 바 (Dompet Style) ---------------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h);
  background: #ffffff; border-bottom: 1px solid rgba(227, 231, 239, 0.8);
  box-shadow: 0 4px 18px rgba(35, 47, 85, 0.04);
  display: flex; align-items: center; gap: 16px; padding: 0 24px; z-index: 100;
}
.topbar .hamburger {
  width: 40px; height: 40px; border: 1px solid rgba(47, 76, 221, 0.2);
  border-radius: 11px; background: #f4f6fc; color: var(--dompet-primary);
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.topbar .hamburger:hover {
  background: var(--dompet-primary); color: #fff; border-color: var(--dompet-primary);
}
.topbar .school {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.1rem; color: var(--text); white-space: nowrap;
}
.topbar .school .logo-box {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, #2f4cdd 0%, #50c8b6 100%);
  color: #ffffff; display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; box-shadow: 0 4px 12px rgba(47, 76, 221, 0.25);
}
.topbar .school-name-wrap {
  display: flex; flex-direction: column; line-height: 1.2;
}
.topbar .school-name-wrap .name { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.topbar .school-name-wrap .sub-name { font-size: 0.72rem; font-weight: 600; color: var(--dompet-primary); letter-spacing: 0.5px; }

.topbar .search-wrap { flex: 1; display: flex; justify-content: center; }
.topbar .search {
  width: min(440px, 100%); height: 42px; border: 1px solid #e2e8f0;
  border-radius: 12px; padding: 0 16px 0 40px; font-size: .92rem;
  background: #f8fafc url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%232f4cdd' stroke-width='2.2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 14px center no-repeat;
  transition: all 0.2s ease;
}
.topbar .search:focus {
  background-color: #ffffff; border-color: var(--dompet-primary);
  box-shadow: 0 0 0 3px rgba(47, 76, 221, 0.12); outline: none;
}
.topbar .actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 11px;
  font-size: 1.1rem; color: #475569; display: flex; align-items: center; justify-content: center;
  position: relative; transition: all 0.2s ease;
}
.icon-btn:hover { background: var(--dompet-primary-light); color: var(--dompet-primary); border-color: rgba(47,76,221,0.25); }
.icon-btn.primary-circle {
  background: linear-gradient(135deg, #2f4cdd 0%, #4f6bff 100%); color: #fff; border: none;
  font-size: 1.3rem; box-shadow: 0 4px 14px rgba(47, 76, 221, 0.3);
}
.icon-btn.primary-circle:hover {
  transform: translateY(-2px); box-shadow: 0 6px 18px rgba(47, 76, 221, 0.4);
}
.icon-btn .dot {
  position: absolute; top: 7px; right: 7px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--dompet-red); border: 2px solid #fff;
}
.badge-pill {
  border: 1px solid rgba(47, 76, 221, 0.2); color: var(--dompet-primary); border-radius: 20px;
  font-size: .78rem; font-weight: 700; padding: 4px 10px; background: var(--dompet-primary-light); white-space: nowrap;
}
.user-profile-badge {
  display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 6px;
  border-radius: 30px; background: #f8fafc; border: 1px solid #e2e8f0;
  position: relative; cursor: pointer; user-select: none; transition: all 0.2s ease;
}
.user-profile-badge:hover {
  background: #f1f5f9; border-color: rgba(47,76,221,0.3);
}
.user-profile-badge .user-meta { display: flex; flex-direction: column; line-height: 1.25; }
.user-profile-badge .user-name { font-size: 0.86rem; font-weight: 700; color: var(--text); }
.user-profile-badge .user-role { font-size: 0.72rem; color: var(--text-2); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #2f4cdd 0%, #50c8b6 100%); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 800; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(47, 76, 221, 0.25);
}
.avatar.green-dot { position: relative; }
.avatar.green-dot::after {
  content: ""; position: absolute; right: -1px; bottom: -1px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #37c66d; border: 2px solid #fff;
}

/* User Profile Dropdown Menu Popup (ManageBac Style) */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 210px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(35, 47, 85, 0.16);
  border: 1px solid rgba(227, 231, 239, 0.8);
  padding: 12px;
  display: none;
  z-index: 300;
  animation: userMenuPop 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.user-dropdown-menu.show {
  display: block !important;
}
@keyframes userMenuPop {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ud-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 10px;
}
.ud-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f4cdd 0%, #50c8b6 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(47, 76, 221, 0.25);
}
.ud-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.ud-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text);
}
.ud-link {
  font-size: 0.76rem;
  color: var(--text-2);
  text-decoration: none;
}
.ud-link:hover {
  color: var(--dompet-primary);
  text-decoration: underline;
}
.ud-divider {
  height: 1px;
  background: rgba(227, 231, 239, 0.8);
  margin: 6px 0;
}
.ud-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.ud-item:hover {
  background: var(--dompet-primary-light);
  color: var(--dompet-primary);
  text-decoration: none;
}
.ud-item.logout {
  color: var(--dompet-red);
}
.ud-item.logout:hover {
  background: var(--dompet-red-light);
  color: var(--dompet-red);
}
.ud-ico {
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
}

/* ---------------- Global Modal System (Dompet Theme) ---------------- */
.dompet-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.25s ease;
}
.dompet-modal-overlay.show {
  opacity: 1; visibility: visible;
}
.dompet-modal-dialog {
  width: 90%; max-width: 500px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(227, 231, 239, 0.8);
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.dompet-modal-overlay.show .dompet-modal-dialog {
  transform: translateY(0) scale(1);
}
.dompet-modal-header {
  padding: 18px 24px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.dompet-modal-title {
  font-size: 1.12rem; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.dompet-modal-close {
  background: none; border: none; font-size: 1.4rem; color: var(--text-3);
  cursor: pointer; width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.dompet-modal-close:hover {
  background: #e2e8f0; color: var(--text);
}
.dompet-modal-body {
  padding: 24px; max-height: 70vh; overflow-y: auto;
}
.dompet-modal-footer {
  padding: 16px 24px; background: #f8fafc; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
}
.modal-form-group {
  margin-bottom: 18px;
}
.modal-form-group:last-child { margin-bottom: 0; }
.modal-form-group label {
  display: block; font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 6px;
}
.modal-form-control {
  width: 100%; height: 42px; border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 0 14px; font-size: 0.9rem; background: #ffffff;
  transition: border-color 0.2s ease; box-sizing: border-box;
}
.modal-form-control:focus {
  border-color: var(--dompet-primary); outline: none; box-shadow: 0 0 0 3px var(--dompet-primary-light);
}
.modal-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid #f1f5f9;
}
.modal-toggle-row:last-child { border-bottom: none; }
.modal-toggle-info { display: flex; flex-direction: column; gap: 2px; }
.modal-toggle-title { font-weight: 700; font-size: 0.88rem; color: var(--text); }
.modal-toggle-desc { font-size: 0.78rem; color: var(--text-2); }

/* ManageBac 스타일 대시보드 맞춤설정 전용 토글 스위치 및 카드 */
.mb-toggle-switch {
  position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0;
}
.mb-toggle-switch input { opacity: 0; width: 0; height: 0; }
.mb-toggle-slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1; transition: .3s ease; border-radius: 24px;
}
.mb-toggle-slider:before {
  position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background-color: white; transition: .3s ease; border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.mb-toggle-switch input:checked + .mb-toggle-slider {
  background-color: #2f4cdd;
}
.mb-toggle-switch input:checked + .mb-toggle-slider:before {
  transform: translateX(20px);
}

.widget-item-card {
  border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 10px; background: #ffffff;
  overflow: hidden; transition: all 0.2s ease;
}
.widget-item-head {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 16px;
  background: #ffffff; font-weight: 700; font-size: 0.92rem; color: var(--text); cursor: pointer;
}
.widget-item-head .handle {
  color: #94a3b8; margin-right: 8px; font-size: 1rem; cursor: grab;
}
.widget-custom-box {
  background: #f8fafc; border-top: 1px solid #f1f5f9; padding: 14px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px;
}
.widget-sub-card {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 8px;
  text-align: center; font-size: 0.82rem; font-weight: 700; color: var(--text);
  box-shadow: 0 2px 6px rgba(0,0,0,0.02); display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: relative; cursor: grab; transition: transform 0.15s ease, border-color 0.15s ease;
}
.widget-sub-card:hover { border-color: var(--dompet-primary); transform: translateY(-2px); }
.widget-sub-card .drag-icon { position: absolute; top: 6px; left: 6px; font-size: 0.72rem; color: #94a3b8; }
.widget-sub-card .w-icon { font-size: 1.4rem; margin-bottom: 2px; }

/* ---------------- 사이드바 (Dompet Style) ---------------- */
.sidebar {
  position: fixed; top: var(--topbar-h); left: 0; bottom: 0; width: var(--sidebar-w);
  background: #ffffff; border-right: 1px solid rgba(227, 231, 239, 0.8);
  box-shadow: 2px 0 16px rgba(35, 47, 85, 0.03);
  padding: 18px 12px 16px; overflow-y: auto; z-index: 90;
  display: flex; flex-direction: column;
}
.sidebar-label {
  font-size: 0.72rem; font-weight: 800; color: var(--text-3); letter-spacing: 0.8px;
  padding: 0 12px 8px; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border-radius: 12px; color: #475569; font-size: .94rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; text-decoration: none; margin-bottom: 4px;
  transition: all 0.2s ease;
}
.nav-item:hover {
  background: #f1f5f9; color: var(--dompet-primary); text-decoration: none;
  transform: translateX(2px);
}
.nav-item.active {
  background: linear-gradient(118deg, #2f4cdd 0%, #4f6bff 100%);
  color: #ffffff !important; font-weight: 700;
  box-shadow: 0 6px 18px rgba(47, 76, 221, 0.28);
}
.nav-item .ico {
  width: 28px; height: 28px; border-radius: 8px; background: #f8fafc;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; flex-shrink: 0; transition: all 0.2s ease;
}
.nav-item.active .ico {
  background: rgba(255, 255, 255, 0.25); color: #ffffff;
}
.nav-item .caret { margin-left: auto; font-size: .75rem; opacity: 0.7; }
.nav-sub {
  margin-left: 18px; padding-left: 10px; border-left: 2px solid #e2e8f0; margin-bottom: 6px;
}
.nav-sub a {
  display: flex; align-items: center; gap: 9px; padding: 8px 12px;
  color: var(--text-2); font-size: .88rem; border-radius: 9px; line-height: 1.35;
  transition: all 0.2s ease;
}
.nav-sub a:hover { background: #f1f5f9; color: var(--dompet-primary); text-decoration: none; }
.nav-sub a.on { background: var(--dompet-primary-light); color: var(--dompet-primary); font-weight: 700; }
.nav-sub .gdot {
  width: 7px; height: 7px; border-radius: 50%; background: #37c66d;
  flex-shrink: 0;
}
.nav-sub .explore { color: var(--dompet-primary); font-weight: 600; display: flex; gap: 9px; padding: 8px 12px; }
.sidebar .foot {
  margin-top: auto; padding: 12px 14px; display: flex; align-items: center; gap: 12px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px;
  text-decoration: none; color: inherit; cursor: pointer;
  transition: all 0.2s ease;
}
.sidebar .foot:hover {
  background: #f1f5f9; border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.sidebar .foot .f-logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #7a5af5 0%, #2f4cdd 100%);
  color: #fff; font-size: .85rem; font-weight: 800; display: flex;
  align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(122, 90, 245, 0.3);
}

/* Collapsed Sidebar Styles (Desktop only) */
@media (min-width: 1025px) {
  body.sidebar-collapsed {
    --sidebar-w: 70px;
  }
  body.sidebar-collapsed .sidebar-label,
  body.sidebar-collapsed .nav-item span:not(.ico),
  body.sidebar-collapsed .nav-sub,
  body.sidebar-collapsed .sidebar .foot div {
    display: none !important;
  }
  body.sidebar-collapsed .nav-item {
    justify-content: center;
    padding: 11px 0;
  }
  body.sidebar-collapsed .sidebar .foot {
    justify-content: center;
    padding: 8px 0;
  }
}

/* ---------------- 레이아웃 ---------------- */
.layout { padding: calc(var(--topbar-h) + 18px) 22px 40px calc(var(--sidebar-w) + 22px); transition: padding 0.2s ease; }
.layout.with-panel { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.main-col { min-width: 0; }

.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .9rem; margin-bottom: 14px; color: var(--text-3);
}
.breadcrumb b { color: var(--text); font-weight: 600; }

.card {
  background: var(--card); border-radius: var(--dompet-card-radius);
  box-shadow: var(--dompet-card-shadow); border: 1px solid rgba(227, 231, 239, 0.6);
  margin-bottom: 22px; transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card .card-body { padding: 22px 26px; }

/* 클래스 헤더(배너) */
.class-banner { height: 110px; border-radius: var(--dompet-card-radius) var(--dompet-card-radius) 0 0; }
.banner-green  { background: linear-gradient(118deg, #50c8b6 0%, #2f4cdd 100%); }
.banner-purple { background: linear-gradient(118deg, #8f7bdc 0%, #4f6bff 100%); }
.banner-orange { background: linear-gradient(118deg, #f8a961 0%, #ff5e5e 100%); }
.banner-blue   { background: linear-gradient(118deg, #2f4cdd 0%, #50c8b6 100%); }
.class-head { padding: 0 26px 0; position: relative; }
.class-head .cls-icon {
  width: 64px; height: 64px; border-radius: 16px; background: #fff;
  box-shadow: 0 6px 18px rgba(35, 47, 85, 0.12); border: 2px solid #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; margin-top: -32px; position: relative;
}
.class-head h1 { font-size: 1.7rem; font-weight: 800; margin: 12px 0 4px; color: var(--text); }
.class-head .sub { color: var(--text-2); font-size: .95rem; font-weight: 500; }
.class-head .meta-row { display: flex; gap: 8px; margin: 14px 0 6px; }
.chip {
  border: 1px solid rgba(227, 231, 239, 0.8); background: #f8fafc; border-radius: 10px;
  padding: 5px 12px; font-size: .88rem; font-weight: 600; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.chip .rdot { width: 6px; height: 6px; border-radius: 50%; background: var(--dompet-red); align-self: flex-start; }

/* 탭 */
.tabs { display: flex; gap: 6px; padding: 8px 18px 0; border-top: 1px solid var(--border); margin-top: 16px; overflow-x: auto; }
.class-head .tabs { border-top: none; padding: 0; }
.tab {
  padding: 12px 18px; font-size: .94rem; color: var(--text-2); white-space: nowrap;
  border-bottom: 3px solid transparent; text-decoration: none; font-weight: 600;
  transition: all 0.2s ease; border-radius: 8px 8px 0 0;
}
.tab:hover { color: var(--dompet-primary); text-decoration: none; background: var(--dompet-primary-light); }
.tab.on { color: var(--dompet-primary); border-bottom-color: var(--dompet-primary); font-weight: 800; background: var(--dompet-primary-light); }
.subtabs { display: flex; gap: 16px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.subtabs .tab { padding: 10px 4px; border-radius: 0; }

/* 섹션 */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { font-size: 1.4rem; font-weight: 800; }
.section-head h3 { font-size: 1.1rem; font-weight: 700; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 11px;
  padding: 10px 18px; font-size: .92rem; font-weight: 700; border: 1px solid transparent;
  text-decoration: none; white-space: nowrap; transition: all 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #2f4cdd 0%, #4f6bff 100%); color: #fff;
  box-shadow: 0 4px 14px rgba(47, 76, 221, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #233ec4 0%, #3b57e8 100%);
  box-shadow: 0 6px 18px rgba(47, 76, 221, 0.35); color: #fff;
}
.btn-outline { background: #ffffff; border-color: #cbd5e1; color: var(--text); box-shadow: 0 2px 6px rgba(0,0,0,0.03); }
.btn-outline:hover { background: #f8fafc; border-color: var(--dompet-primary); color: var(--dompet-primary); }
.btn-outline.blue { color: var(--dompet-primary); border-color: rgba(47,76,221,0.4); background: var(--dompet-primary-light); }
.btn-danger-soft { background: var(--dompet-red-light); border-color: rgba(255,94,94,0.3); color: var(--dompet-red); }
.btn-sm { padding: 7px 14px; font-size: .86rem; border-radius: 9px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* 빈 상태 */
.empty {
  text-align: center; padding: 46px 20px 50px; color: var(--text-2);
}
.empty .art { font-size: 3rem; margin-bottom: 14px; }
.empty h3 { color: var(--text); font-size: 1.1rem; margin-bottom: 6px; }
.empty p { font-size: .9rem; margin-bottom: 16px; }
.empty .pattern {
  background: repeating-linear-gradient(45deg,#f6f8fc 0 14px,#eef1f8 14px 28px);
  border-radius: 10px; padding: 34px 0; margin-bottom: 18px;
}
.empty .pattern .art-card {
  width: 86px; height: 86px; margin: 0 auto; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
}

/* 오른쪽 상세 패널 */
.detail-panel { position: sticky; top: calc(var(--topbar-h) + 18px); }
.detail-panel .panel-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.detail-panel .panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.detail-panel .panel-head h3 { font-size: 1.12rem; }
.detail-panel .stack { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.detail-panel dt { font-size: .85rem; color: var(--text-3); margin: 14px 0 6px; }
.detail-panel dd { font-size: .92rem; margin: 0 0 4px; }
.panel-divider { border: none; border-top: 1px solid var(--border); margin: 14px 0; }
.side-rail { position: fixed; right: 8px; top: calc(var(--topbar-h) + 24px); display: flex; flex-direction: column; gap: 8px; z-index: 80; }
.side-rail .icon-btn { background: #fff; box-shadow: var(--shadow); border: 1px solid var(--border); }
.side-rail .icon-btn.on { border-color: var(--primary); color: var(--primary); }

/* 대시보드 위젯 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.widget { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.widget h3 { font-size: 1.05rem; margin-bottom: 14px; }
.widget .w-empty { text-align: center; padding: 26px 8px; color: var(--text-2); font-size: .88rem; }
.widget .w-empty .art { font-size: 2.2rem; margin-bottom: 10px; }
.widget .w-empty b { display: block; color: var(--text); font-size: 1rem; margin-bottom: 4px; }
.date-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.date-nav .box {
  flex: 1; border: 1px solid var(--border-strong); border-radius: 9px;
  padding: 8px 12px; display: flex; justify-content: space-between; font-size: .9rem;
}
.date-nav .arrow {
  width: 34px; height: 34px; border: 1px solid var(--border-strong); background: #fff;
  border-radius: 9px; color: var(--text-2);
}

/* 리스트/타임라인 */
.activity-group h4 { font-size: 1.02rem; margin: 18px 0 10px; }
.activity-item {
  display: flex; align-items: center; gap: 13px; border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; background: #fff;
}
.activity-item .a-ico {
  width: 40px; height: 40px; border-radius: 9px; background: var(--orange-soft);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0;
}
.activity-item .a-main { flex: 1; min-width: 0; }
.activity-item .a-title { font-weight: 700; font-size: .95rem; }
.activity-item .a-sub { color: var(--text-2); font-size: .84rem; margin-top: 2px; }
.activity-item .mini-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: #133c8b; color: #fff;
  font-size: .62rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* 테이블 */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th {
  text-align: left; color: var(--text-2); font-weight: 600; font-size: .86rem;
  padding: 10px 12px; border-bottom: 1px solid var(--border);
}
.table td { padding: 11px 12px; border-bottom: 1px solid var(--border); }
.table tr:nth-child(even) td { background: #f8fafd; }
.table tr:hover td { background: #f2f6fd; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.row-actions .icon-btn { width: 32px; height: 32px; border: 1px solid var(--border-strong); font-size: .9rem; }
.row-actions .icon-btn.danger { border-color: #f0b9b9; color: var(--red); }
.text-red { color: var(--red); }
.search-input {
  width: 100%; height: 40px; border: 1px solid var(--border-strong); border-radius: 9px;
  padding: 0 12px 0 34px; font-size: .9rem; margin-bottom: 14px;
  background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='none' stroke='%238a93a8' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 11px center no-repeat;
}

/* 카테고리/태그 */
.tag { display: inline-block; border-radius: 6px; padding: 3px 9px; font-size: .8rem; font-weight: 600; border: 1px solid; }
.tag.green  { color: #1d8a5c; border-color: #9ed9c0; background: var(--green-soft); }
.tag.blue   { color: var(--primary); border-color: #a9c4f2; background: var(--primary-soft); }
.tag.purple { color: #6a48e0; border-color: #c9bcf5; background: #f1edfd; }
.tag.lime   { color: #6f9a1d; border-color: #cbe39a; background: #f3f9e6; }
.tag.orange { color: var(--orange); border-color: #f0cf9e; background: var(--orange-soft); }
.tag.red    { color: var(--red); border-color: #f0b9b9; background: var(--red-soft); }

/* 달력 */
.cal-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 9px; overflow: hidden; }
.seg button { border: none; background: #fff; padding: 7px 16px; font-size: .88rem; color: var(--text-2); }
.seg button.on { color: var(--primary); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--primary); border-radius: 8px; background: #fff; }
.calendar { width: 100%; border-collapse: collapse; table-layout: fixed; }
.calendar th { color: var(--primary); font-weight: 600; font-size: .85rem; padding: 8px 0; border-bottom: 1px solid var(--border); }
.calendar th.weekend { color: var(--text-3); }
.calendar td {
  height: 86px; vertical-align: top; border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border); padding: 6px 8px; font-size: .85rem; color: var(--text-2);
}
.calendar td:last-child { border-right: none; }
.calendar td .d { text-align: right; }
.calendar td.dim { color: #c2c9d8; }
.calendar td .today {
  display: inline-flex; width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary); color: #fff; align-items: center; justify-content: center; font-weight: 700;
}
.cal-event {
  margin-top: 5px; background: var(--primary-soft); color: var(--primary);
  border-left: 3px solid var(--primary); border-radius: 5px;
  font-size: .72rem; padding: 3px 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

/* 단원 플래너 */
.planner-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.planner-nav a {
  border: 1px solid var(--border-strong); border-radius: 9px; background: #fff;
  padding: 12px 16px; font-weight: 700; font-size: .95rem; color: var(--text); text-decoration: none;
}
.planner-nav a.on { border: 2px solid var(--primary); }
.planner-nav a:hover { background: #f4f6fb; }
.plan-label { font-size: .85rem; font-weight: 700; color: var(--text-2); padding: 10px 2px; border-top: 1px solid var(--border); margin-top: 16px; }
.plan-section {
  border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; margin: 12px 0;
  background: #fff;
}
.plan-section.accent { border-left: 4px solid var(--primary); }
.plan-section .ps-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.plan-section .ps-head h3 { font-size: 1.15rem; }
.plan-section h4 { font-size: 1rem; margin: 14px 0 8px; }
.kv-grid { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 14px; margin-top: 10px; }
.kv-grid .k { font-size: .82rem; color: var(--text-3); margin-bottom: 5px; }
.kv-grid .v { font-weight: 700; font-size: .95rem; }
.concept-row {
  display: flex; gap: 16px; align-items: flex-start; background: #f7f9fd;
  border-radius: 9px; padding: 12px 14px; margin-top: 8px; font-size: .9rem;
}
.concept-row .c-ico { font-size: 1.5rem; text-align: center; }
.concept-row .c-ico small { display: block; font-size: .75rem; color: var(--text-2); }
.add-slot {
  border: 1.5px dashed var(--border-strong); border-radius: 9px; text-align: center;
  padding: 22px; color: var(--text-2); font-size: .92rem; cursor: pointer; background: #fff;
}
.add-slot:hover { border-color: var(--primary); color: var(--primary); }

/* 학생 목록(스트림) */
.stream-grid { display: grid; grid-template-columns: 200px 1fr; gap: 22px; }
.student-list { display: flex; flex-direction: column; gap: 2px; }
.student-list a {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px;
  color: var(--text); font-size: .9rem;
}
.student-list a:hover { background: #f1f4fa; text-decoration: none; }
.student-list a.on { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.student-list .s-avatar {
  width: 26px; height: 26px; border-radius: 50%; background: #d8e2f5; color: #3c5a94;
  font-size: .6rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* 로그인 */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: #eef1f8; padding: 20px;
}
.login-card {
  width: 380px; background: #fff; border-radius: 12px; box-shadow: 0 4px 18px rgba(30,40,70,.1);
  padding: 0 26px 26px; position: relative; margin-top: 40px;
}
.login-logo {
  width: 74px; height: 74px; border-radius: 16px; background: #fff;
  box-shadow: 0 2px 10px rgba(30,40,70,.14); margin: -37px auto 0;
  display: flex; align-items: center; justify-content: center; font-size: 2.1rem;
}
.login-card h1 { text-align: center; font-size: 1.15rem; margin: 14px 0 22px; }
.login-card label { display: flex; justify-content: space-between; font-size: .82rem; color: var(--text-2); margin: 14px 0 5px; }
.login-card label .req::after { content: " *"; color: var(--red); }
.login-card input[type=email], .login-card input[type=password] {
  width: 100%; height: 40px; border: 1px solid var(--border-strong); border-radius: 8px; padding: 0 12px; font-size: .92rem;
}
.login-card .remember { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; color: var(--text-2); margin: 14px 0 16px; }
.login-card .divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: .82rem; margin: 14px 0; }
.login-card .divider::before, .login-card .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.cookie-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px;
  width: min(560px, 92vw); background: #fff; border-radius: 12px;
  box-shadow: 0 6px 24px rgba(30,40,70,.18); padding: 16px 18px; font-size: .85rem; z-index: 200;
}
.cookie-bar h4 { font-size: .95rem; margin-bottom: 6px; }
.cookie-bar .row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* 반응형 */
@media (max-width: 1100px) {
  .layout.with-panel { grid-template-columns: 1fr; }
  .detail-panel { position: static; }
  .grid-3 { grid-template-columns: 1fr; }
  .dompet-stat-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 860px) {
  .sidebar { display: none; }
  .layout { padding-left: 22px; }
  .stream-grid { grid-template-columns: 1fr; }
  .kv-grid { grid-template-columns: 1fr 1fr; }
  .dompet-stat-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   Dompet Admin Dashboard Theme Extensions
   ============================================================ */
:root {
  --dompet-primary: #2f4cdd;
  --dompet-primary-light: #eef2ff;
  --dompet-teal: #50c8b6;
  --dompet-teal-light: #e6f9f6;
  --dompet-orange: #f8a961;
  --dompet-orange-light: #fff5eb;
  --dompet-purple: #8f7bdc;
  --dompet-purple-light: #f3f0fd;
  --dompet-red: #ff5e5e;
  --dompet-red-light: #ffeef0;
  --dompet-card-radius: 16px;
  --dompet-card-shadow: 0 8px 24px rgba(35, 47, 85, 0.06);
  --dompet-card-shadow-hover: 0 12px 32px rgba(47, 76, 221, 0.12);
}

/* Dompet Hero Welcome Card */
.dompet-hero {
  background: linear-gradient(118deg, #2f4cdd 0%, #4f6bff 55%, #3b57e8 100%);
  border-radius: var(--dompet-card-radius);
  color: #ffffff;
  padding: 24px 28px;
  margin-bottom: 22px;
  box-shadow: 0 10px 28px rgba(47, 76, 221, 0.28);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.dompet-hero::before {
  content: "";
  position: absolute;
  right: -30px;
  top: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.dompet-hero::after {
  content: "";
  position: absolute;
  right: 120px;
  bottom: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.dompet-hero .hero-text h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.dompet-hero .hero-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}
.dompet-hero .hero-actions {
  display: flex;
  gap: 10px;
  z-index: 2;
}
.btn-dompet-light {
  background: #ffffff;
  color: var(--dompet-primary);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}
.btn-dompet-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  background: #f8faff;
  text-decoration: none;
}
.btn-dompet-glass {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}
.btn-dompet-glass:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  text-decoration: none;
}

/* Dompet Stats Grid */
.dompet-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.dompet-stat-card {
  background: #ffffff;
  border-radius: var(--dompet-card-radius);
  padding: 18px 20px;
  box-shadow: var(--dompet-card-shadow);
  border: 1px solid rgba(227, 231, 239, 0.6);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dompet-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--dompet-card-shadow-hover);
}
.stat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.stat-icon-wrap.icon-bg-primary { background: var(--dompet-primary-light); color: var(--dompet-primary); }
.stat-icon-wrap.icon-bg-teal { background: var(--dompet-teal-light); color: var(--dompet-teal); }
.stat-icon-wrap.icon-bg-orange { background: var(--dompet-orange-light); color: var(--dompet-orange); }
.stat-icon-wrap.icon-bg-purple { background: var(--dompet-purple-light); color: var(--dompet-purple); }

.stat-info { flex: 1; min-width: 0; }
.stat-info .stat-label { font-size: 0.84rem; color: var(--text-2); font-weight: 500; margin-bottom: 4px; }
.stat-info .stat-value { font-size: 1.45rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  margin-top: 4px;
}
.stat-trend.up { background: var(--green-soft); color: var(--green); }
.stat-trend.neutral { background: var(--dompet-primary-light); color: var(--dompet-primary); }

/* Dompet Cards general */
.dompet-card {
  background: #ffffff;
  border-radius: var(--dompet-card-radius);
  box-shadow: var(--dompet-card-shadow);
  border: 1px solid rgba(227, 231, 239, 0.6);
  margin-bottom: 22px;
  transition: box-shadow 0.2s ease;
}
.dompet-card:hover {
  box-shadow: 0 10px 28px rgba(35, 47, 85, 0.09);
}
.dompet-card-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dompet-card-head h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dompet-card-body {
  padding: 20px 24px;
}

/* Dompet Pill Badges */
.dompet-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}
.dompet-pill.pill-teal { background: var(--dompet-teal-light); color: #169b88; }
.dompet-pill.pill-primary { background: var(--dompet-primary-light); color: var(--dompet-primary); }
.dompet-pill.pill-orange { background: var(--dompet-orange-light); color: #d6751c; }
.dompet-pill.pill-purple { background: var(--dompet-purple-light); color: #694ed2; }
.dompet-pill.pill-red { background: var(--dompet-red-light); color: var(--dompet-red); }

/* Class Cards Grid in Dompet Style */
.dompet-class-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(30, 40, 70, 0.04);
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}
.dompet-class-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(47, 76, 221, 0.12);
  border-color: rgba(47, 76, 221, 0.3);
}
.dompet-class-banner {
  height: 68px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: #ffffff;
  position: relative;
}
.dompet-class-banner .icon-tag {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.dompet-class-content {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dompet-class-title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 6px;
}
.dompet-class-sub {
  color: var(--text-2);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

/* Progress bar slim */
.dompet-progress-wrap {
  margin-top: 6px;
}
.dompet-progress-bar {
  height: 6px;
  width: 100%;
  background: #edf0f7;
  border-radius: 10px;
  overflow: hidden;
}
.dompet-progress-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--dompet-primary) 0%, var(--dompet-teal) 100%);
}

/* Schedule / Timeline Items */
.dompet-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f4fa;
}
.dompet-timeline-item:last-child {
  border-bottom: none;
}
.dompet-time-badge {
  background: var(--dompet-primary-light);
  color: var(--dompet-primary);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.dompet-timeline-content {
  flex: 1;
}
.dompet-timeline-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 2px;
}
.dompet-timeline-desc {
  font-size: 0.82rem;
  color: var(--text-2);
}

/* Review / Approval Card Items */
.dompet-review-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  margin-bottom: 10px;
}
.dompet-review-item:last-child {
  margin-bottom: 0;
}
.dompet-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f4cdd 0%, #50c8b6 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dompet-review-info {
  flex: 1;
  min-width: 0;
}
.dompet-review-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dompet-review-sub {
  font-size: 0.78rem;
  color: var(--text-2);
  margin-top: 2px;
}
.dompet-review-actions {
  display: flex;
  gap: 6px;
}

/* Quick Action Card buttons */
.dompet-quick-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
  transition: all 0.2s ease;
  margin-bottom: 10px;
  cursor: pointer;
}
.dompet-quick-btn:last-child {
  margin-bottom: 0;
}
.dompet-quick-btn:hover {
  border-color: var(--dompet-primary);
  background: var(--dompet-primary-light);
  color: var(--dompet-primary);
  transform: translateX(3px);
  text-decoration: none;
}
.dompet-quick-btn .q-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ---------------- 모바일 반응형 스타일 ---------------- */
@media (max-width: 1024px) {
  .topbar {
    padding: 0 12px;
    gap: 8px;
  }
  /* 모바일 화면에서 로고 옆 텍스트(IB School LMS ADMIN) 숨김 */
  .topbar .school-name-wrap {
    display: none !important;
  }
  .topbar .search {
    width: 38px;
    padding: 0;
    background-position: center;
  }
  .topbar .search::placeholder {
    color: transparent;
  }
  .topbar .actions {
    gap: 6px;
  }
  .user-profile-badge .user-meta {
    display: none !important;
  }
  .user-profile-badge {
    padding: 2px;
    border-radius: 50%;
  }

  /* 모바일 사이드바 Slide-in 슬라이드 메뉴 */
  .sidebar {
    position: fixed !important;
    top: var(--topbar-h) !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 260px !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 4px 0 25px rgba(0,0,0,0.25) !important;
    z-index: 999 !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
  }
  body.mobile-sidebar-open .sidebar {
    transform: translateX(0) !important;
  }
  body.mobile-sidebar-open::before {
    content: "";
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 988;
  }
  /* 슬라이드바 내부 모든 메뉴 텍스트 및 서브메뉴 강제 표시 */
  .sidebar .sidebar-label,
  body.mobile-sidebar-open .sidebar .sidebar-label {
    display: block !important;
  }
  .sidebar .nav-item,
  body.mobile-sidebar-open .sidebar .nav-item {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 11px 14px !important;
  }
  .sidebar .nav-item span,
  body.mobile-sidebar-open .sidebar .nav-item span {
    display: inline-block !important;
  }
  .sidebar .nav-sub,
  body.mobile-sidebar-open .sidebar .nav-sub {
    display: flex !important;
    flex-direction: column !important;
  }
  .sidebar .foot div,
  body.mobile-sidebar-open .sidebar .foot div {
    display: block !important;
  }

  .layout {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .layout.with-panel {
    grid-template-columns: 1fr !important;
  }
}

