/* ======================================
   공통 레이아웃
====================================== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Pretendard", sans-serif;
  background-color: #f5f7fa;
  color: #333;
}

.wrapper {
  display: flex;
}

/* ======================================
   사이드바
====================================== */
.sidebar {
  width: 240px;
  min-width: 240px;
  background-color: #1e293b;
  height: 100vh;
  padding: 20px;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
}

.sidebar h2 {
  color: #ffffff;
  font-size: 22px;
  margin-bottom: 30px;
  line-height: 1.4;
}

/* ======================================
   메뉴 공통 스타일
====================================== */
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 6px;
  border-radius: 6px;
  text-decoration: none;
  color: #cbd5e1;
  font-size: 15px;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.menu-item:hover {
  background-color: #334155;
  color: #ffffff;
}

/* 상위메뉴 활성(파란색) */
.menu-item.active {
  background-color: #3b82f6;
  color: #ffffff;
  font-weight: 500;
}

/* 회사정보(상위 토글) */
.menu-item.has-sub {
  cursor: pointer;
}

/* 화살표 아이콘 */
.menu-item.has-sub .arrow {
  border: solid #cbd5e1;
  border-width: 0 2px 2px 0;
  padding: 4px;
  margin-left: 10px;
  transform: rotate(45deg); /* ▶ */
  transition: transform 0.25s ease;
}

.menu-group.open .arrow {
  transform: rotate(135deg); /* ▼ */
}

/* ======================================
   하위 메뉴
====================================== */
.menu-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}

.sub-menu {
  display: none;
  margin-top: 6px;
  padding-left: 18px;
  flex-direction: column;
  gap: 6px;
}

.menu-group.open .sub-menu {
  display: flex;
}

.sub-item {
  font-size: 14px;
  color: #e2e8f0;
  text-decoration: none;
  padding: 4px 0;
}

.sub-item:hover {
  color: #ffffff;
}

/* 현재 하위 메뉴 (굵게 표시) */
.sub-item.current {
  font-weight: 600;
  color: #ffffff;
}

/* ======================================
   메인 콘텐츠
====================================== */
.content {
  margin-left: 240px;
  padding: 40px;
  box-sizing: border-box;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
}

/* ======================================
   입력폼/카드
====================================== */
.form-section {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 500;
}

input, select {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-sizing: border-box;
}

input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.save-btn {
  display: inline-block;
  background-color: #3b82f6;
  color: white;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin-top: 20px;
}

.save-btn:hover {
  background-color: #2563eb;
}
