:root {
  --brand: #1f6f54;
  --brand-dark: #164f3d;
}
body { background: #f4f6f8; }

.app-topbar { background: var(--brand-dark); }
.app-topbar .navbar-brand { color: #fff; }

.app-body { display: flex; min-height: calc(100vh - 56px); }

.app-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #e3e6e8;
}

.menu-list { padding: 8px 0 16px; list-style: none; }
.menu-list .nav-link {
  color: #333;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 3px solid transparent;
  font-size: 0.95rem;
}
.menu-list .nav-link:hover,
.menu-list .nav-link.active {
  background: #eef6f2;
  color: var(--brand);
  border-left-color: var(--brand);
  font-weight: 600;
}

/* 관리자 영역 구분 헤더 */
.menu-list .menu-section-title {
  margin-top: 16px;
  padding: 12px 20px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--brand-dark);
  border-top: 1px solid #e3e6e8;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 접기/펴기 카테고리 그룹 */
.menu-list .menu-group { list-style: none; }
.menu-list .menu-group-title {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 12px 20px 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #9aa4ab;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.menu-list .menu-group-title:hover { color: var(--brand); }
.menu-list .menu-group-title .chev {
  font-size: 0.65rem;
  transition: transform 0.18s ease;
}
.menu-list .menu-group.collapsed .chev { transform: rotate(-90deg); }
.menu-list .menu-group-items {
  list-style: none;
  padding: 0;
  margin: 0;
}
.menu-list .menu-group.collapsed .menu-group-items { display: none; }

.app-content { flex: 1; padding: 24px; max-width: 100%; }

.card { border: none; box-shadow: 0 1px 3px rgba(0,0,0,0.08); border-radius: 10px; }

.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; }

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}
.auth-card { width: 100%; max-width: 400px; }

#sigPad { border: 1px dashed #999; border-radius: 8px; touch-action: none; background:#fff; }

@media (max-width: 991px) {
  .app-content { padding: 16px; }
}
