/* ────────────────────────────────
 📁 Sidebar
──────────────────────────────── */
.sidebar {
  width: 230px;
  background-color: #343a40;
  color: #fff;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: all 0.3s ease;
  z-index: 1000;
  scrollbar-width: none;
  font-size: 13px;
}

.sidebar.hidden {
  transform: translateX(-100%);
}

.sidebar h4 {
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid #555;
  font-weight: 600;
}

.menu-item {
  border-bottom: 1px solid #444;
}

.menu-link {
  color: #d1d1d1;
  text-decoration: none;
  padding: 12px 20px;
  display: block;
  transition: background 0.2s;
  cursor: pointer;
}

.menu-link:hover {
  background-color: #495057;
  color: #fff;
}

.submenu {
  background-color: #3d4349;
  display: none;
}

.submenu a {
  display: block;
  padding: 10px 35px;
  color: #ccc;
  text-decoration: none;
  border-bottom: 1px solid #444;
  transition: background 0.2s;
}

.submenu a:hover {
  background-color: #495057;
}

.menu-link.active {
  color: #fff;
}

.submenu a.active-sub {
  background-color: #2f8ef5;
  color: white !important;
  border-radius: 4px;
  padding-left: 50px;
}

/* ───────────────────────────────
   🟦 사이드바 상단 로고
──────────────────────────────── */
.sidebar-logo {
  width: 100%;
  padding: 18px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-logo a {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-block;
  transform: translateY(1px);
}

/* 🌟 햄버거 버튼 */
.hamburger-btn {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1100;
  background: #343a40;
  border: none;
  color: #fff;
  font-size: 22px;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.hamburger-btn:hover {
  background: #495057;
  border: 1px solid rgba(255,255,255,0.6);
}

/* ────────────────────────────────
 🌐 Top NAV
──────────────────────────────── */
.top-nav {
  position: fixed;
  top: 0;
  left: 231px;
  width: calc(100% - 230px);
  height: 67px;
  background: #e6e8ea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  z-index: 900;
}

/* ────────────────────────────────
 📄 Main Content
──────────────────────────────── */
.main-content {
  margin-left: 230px;
  padding-top: 80px !important;
  width: calc(100% - 230px);
  transition: all 0.3s ease;
}

.sidebar.hidden ~ .main-content {
  width: 80%;
  justify-content: center;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 2px solid #b0b3b5;
  padding-bottom: 8px;
}
