body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(99,102,241,.25), transparent 60%),
    radial-gradient(900px 500px at -10% 100%, rgba(56,189,248,.20), transparent 60%),
    var(--bg);
}

.site-header {
    background-color: #224b7d;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(2,6,23,.25);
}

.header-container {
    display: contents;
}

.nav-menu {
    width: 85%;
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    /*gap: 15px;*/
}

.nav-menu li {
    position: relative; /* 드롭다운 기준 위치 */
    padding-left: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
}

/* 드롭다운 컨테이너 */
.dropdown-content {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff; /* 화이트 배경 */
    min-width: 180px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
    flex-direction: column;
    padding: 6px 0;
    overflow: hidden;
}

/* hover 시 표시 */
.dropdown:hover .dropdown-content {
    display: flex !important;
}

/* 클릭으로 열린 상태 */
.dropdown.open .dropdown-content {
    display: flex !important;
}

/* 드롭다운 항목 */
.dropdown-content li {
    padding: 0;
    margin: 0;
}

/* 드롭다운 항목 링크 */
.dropdown-content li a {
    padding: 12px 18px;
    display: block;
    color: #334155; /* 짙은 그레이 글씨 */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.25s ease, padding-left 0.25s ease, color 0.25s ease;
    border-radius: 6px;
}

.dropdown-content li a:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.4); /* 은은한 파란빛 */
    border-radius: 6px;
}

/* hover & focus 효과 */
.dropdown-content li a:hover,
.dropdown-content li a:focus {
    background-color: #dbeafe; /* 파스텔 블루 */
    color: #1e3a8a; /* 네이비 블루 */
    padding-left: 22px;
}

/* 아이콘 스타일 */
.dropdown > a i {
    margin-left: 6px;
    font-size: 0.9em;
    color: #fff;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* hover 시 색상 변화 */
.dropdown:hover > a i {
    color: #dbeafe; /* 파스텔 블루 */
}

/* 클릭으로 열렸을 때 아래쪽 화살표 회전 */
.dropdown.open > a i {
    transform: rotate(180deg); /* ▼ → ▲ */
}

/* Manage 버튼 */
.manage-btn {
    margin-left: auto;
}

.manage-btn a {
    text-decoration: none;
    padding: 6px 12px;
    background: white;
    color: #ef4444 !important;
    border-radius: 8px;
    font-weight: 500;
}

.manage-btn a:hover {
    background: #3b82f6;
    color: white !important;
}

/* 사용자 정보 */
.user-info {
    margin-left: auto; /* 오른쪽 끝으로 이동 */
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info a {
    text-decoration: none;
    padding: 6px 12px;
    background: white;
    color: #3b82f6;
    border-radius: 8px;
    font-weight: 500;
}

.user-info a:hover {
    background: #3b82f6;
    color: white;
}

.user-info span {
    font-weight: 500;
}

/* 로그아웃 버튼 */
.logout-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #ef4444;
  color: white;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}
.logout-btn:hover {
  background: #b91c1c;
  transform: translateY(-2px);
}
