.layout {
  display: flex;
  min-height: 100vh;
}
.layout__main {
  flex: 1;
  padding: 2rem;
  background-color: #fafafa;
}
.header {
  background: linear-gradient(90deg, #61b1e5 0%, #3d8ed6 100%);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(52, 152, 219, 0.4);
  font-weight: 600;
  font-size: 1.25rem;
  user-select: none;
}

.header__logo{
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.header__logo__title {
  font-size: 1.5rem;
  cursor: pointer;
}

.header__logo__img {
  height: 2.2rem;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__actions .username {
  font-weight: 600;
}

.header__actions .btn {
  background-color: white;
  color: var(--primary-color);
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
  text-decoration: none;
}
.header__actions .btn:hover {
  background-color: #e1e9ff;
}

.footer {
  background-color: #f0f4fb; /* 사이드바와 같은 연한 푸른 회색 */
  color: #2c3e50;            /* 진한 네이비 블루 */
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
  user-select: none;
}

.sidebar {
  /*width: 250px;*/
  background-color: #f0f4fb;  /* 아주 연한 푸른 회색톤 */
  color: #2c3e50;             /* 진한 네이비 블루 */
  box-shadow: 2px 0 5px rgba(0,0,0,0.05);
  padding: 1.5rem 1rem;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar nav ul {
  list-style: none;  /* 점 없애기 */
  padding: 0;
  margin: 0;
}

.sidebar nav ul li {
  margin-bottom: 0.5rem;
}

.sidebar nav ul li a.menu-item {
  /*display: block;*/
  /* 앞서 준 버튼 스타일 유지 */
}


.menu-item {
  display: flex;
  align-items: center;
  gap:6px;
  white-space: nowrap;
  /*padding: 0.75rem 1rem;*/
  padding: 0.75rem;
  background-color: #ffffff;
  border: 1.5px solid transparent;
  border-radius: 8px;
  color: #333333;
  font-size:1.0em;
  font-weight: 600;
  text-decoration: none;
  transition:
          background-color 0.2s ease,
          border-color 0.2s ease,
          color 0.2s ease,
          box-shadow 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.menu-item:hover {
  background-color: #d6e4ff;     /* 밝은 하늘색 */
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: 0 2px 6px rgba(102, 126, 219, 0.3);
}

.menu-item--active {
  background-color: var(--primary-color); /* #3498db */
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.5);
  cursor: default;
}

.menu-item--active:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.5);
}

/* 좁은 화면에서는 텍스트 숨김 */
@media (max-width: 576px) {
  .menu-item .menu-label {
    display: none;
  }

  .menu-item i {
    margin-right: 0;
  }

  .menu-item {
    justify-content: center;
  }
}
/* 태블릿 미니사이즈 */
@media (max-width: 768px) {
  /* 여기에 모바일/태블릿 전용 스타일 작성 */
  .sidebar .menu-label {
    display: none;
  }

  .sidebar .menu-item {
    justify-content: center;
  }
}