/* 마이페이지 전용 네비 스타일 */
.mypage-container ~ * .navbar,
body:has(.mypage-container) .navbar {
    background: #fff;
}

body:has(.mypage-container) .nav-center {
    display: none !important;
}

body:has(.mypage-container) .nav-right {
    display: none !important;
}

body:has(.mypage-container) .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

body:has(.mypage-container) .nav-logo .logo-link {
    color: #b70701;
}

body:has(.mypage-container) .nav-logo .logo-image {
    height: 50px;
}

/* 마이페이지 네비 추가 요소 */
.mypage-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-divider {
    color: #666;
    font-size: 18px;
}

.nav-title {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.nav-title:hover {
    color: #b70701;
}

/* 마이페이지 컨테이너 */
.mypage-container {
    min-height: calc(100vh - 80px);
    background: #f8f9fa;
    padding: 40px 0;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 32px;
    padding: 0 20px;
}

/* 왼쪽 사이드바 */
.sidebar {
    width: 240px;
    flex-shrink: 0;
}

.sidebar nav {
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.menu-item:hover {
    background: #f5f5f5;
    color: #333;
}

.menu-item.active {
    background: #e8f0fe;
    color: #4285f4;
    font-weight: 500;
}

.menu-icon {
    width: 20px;
    height: 20px;
}

/* 오른쪽 컨텐츠 */
.main-content {
    flex: 1;
    min-width: 0;
}

/* 아코디언 메뉴 */
.menu-accordion {
    margin-bottom: 4px;
}

.menu-accordion .menu-item {
    position: relative;
    justify-content: space-between;
}

.accordion-arrow {
    width: 16px;
    height: 16px;
    margin-left: auto;
    transition: transform 0.2s ease;
}

.menu-accordion .menu-item.active .accordion-arrow,
.menu-accordion .submenu.show ~ .menu-item .accordion-arrow {
    transform: rotate(180deg);
}

/* 서브메뉴 */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    margin-top: 4px;
}

.submenu.show {
    max-height: 200px;
}

.submenu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px 12px 52px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 4px 8px;
}

.submenu-item:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #333;
}

.submenu-item.active {
    background: rgba(0, 0, 0, 0.06);
    color: #111;
    font-weight: 600;
}

/* 디바이스 선택 드롭다운 */
.device-selector {
    padding: 16px;
    margin-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.device-selector label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.device-selector select {
    width: 100%;
    padding: 10px 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #111;
    cursor: pointer;
    transition: all 0.2s ease;
}

.device-selector select:hover {
    border-color: #111;
}

.device-selector select:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}