:root{
    --sm-w: 265px;

    /* 배경/라인 */
    --sm-bg: rgba(20,20,20,.92);        /* 메뉴 자체는 다크 유지(오버레이 성격) */
    --sm-panel: rgba(255,255,255,.06);  /* 섹션 헤더 배경 */
    --sm-line: rgba(255,255,255,.10);

    /* 텍스트 */
    --sm-text: rgba(255,255,255,.90);
    --sm-text-dim: rgba(255,255,255,.70);

    /* 포인트 (공지 라벨 톤에 맞춘 오렌지) */
    --sm-accent: #ffb020;               /* 주황/노랑 */
    --sm-accent-dim: rgba(255,176,32,.22);

    /* 라운드/그림자 */
    --sm-radius: 14px;
    --sm-shadow: 16px 0 30px rgba(0,0,0,.35);
}

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    padding: 0 1rem;
    background:
    radial-gradient(circle at top left, rgba(255,255,255,0.2) 0%, transparent 60%),
    radial-gradient(circle at top right, rgba(255,255,255,0.2) 0%, transparent 60%),
    #1a1a1a;
   z-index: 1000;
}

.navbar #m_logo {
    position: absolute;    
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 1001;
}

#m_logo img {
    height: 100%;
}

.top-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidemenu-controller-wrap {
    width: 30px;
    height: 100%;  
    padding: 10px 0;  
}

.sidemenu-closer-wrap {
    margin-left: 1rem;
    width: 30px;
    height: 50px;
    padding: 10px 0;
}

#sidemenu_controller,
#sidemenu_closer {
    width: 30px;
    height: 100%;
    background: transparent;
    border: none;
}

#sidemenu_controller svg,
.userinfo-wrap svg,
#sidemenu_closer svg {
    fill: #EEE;
    width: 25px;
    height: 25px;
}

.userinfo-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
}

.userinfo-wrap a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-white);
}

.loginUserInfo {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;    
}

.body-filter {
    display:none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1001;
}

/* 사이드메뉴 슬라이드 */
.sidemenu-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sm-w);
    height: 100dvh;
    height: -webkit-fill-available;
    z-index: 1002;

    transform: translateX(calc(-1 * var(--sm-w)));
    transition: transform .22s ease;
    will-change: transform;
}
.sidemenu-wrap.show { transform: translateX(0); }

/* 컨테이너 */
.sidemenu-container {
    width: 100%;
    height: 100%;
    background: var(--sm-bg);
    border-right: 1px solid rgba(255,255,255,.08);    
    display: flex;
    flex-direction: column;
}

/* 닫기 상단 바 */
.sidemenu-closer-wrap {
    width: 100%;
    height: 56px;
    margin-left: 0;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;

    border-bottom: 1px solid rgba(255,255,255,.10);
    background: linear-gradient(180deg, rgba(255,255,255,.06), transparent);
}

#sidemenu_closer {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
#sidemenu_closer:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.08);
    border-color: rgba(255,176,32,.30);
}
#sidemenu_closer svg {
    width: 18px;
    height: 18px;
    fill: rgba(255,255,255,.92);
}

/* 내용 레이아웃 */
.sidenav-wrap {
    display:flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
.sidenav-list-wrap {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 10px 14px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
}

/* 섹션 타이틀 */
.sidenav-tag {
    margin: 10px 6px 6px;
    padding: 10px 12px;
    border-radius: 12px;

    background: var(--sm-panel);
    border: 1px solid rgba(255,255,255,.08);

    color: var(--sm-text);
    font-weight: 800;
    letter-spacing: .2px;

    position: relative;
}

/* 왼쪽 포인트 라인 */
.sidenav-tag::before {
    content:"";
    position:absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    border-radius: 999px;
    background: var(--sm-accent);
    box-shadow: 0 0 0 3px rgba(255,176,32,.12);
}

/* 타이틀 텍스트가 라인에 겹치지 않도록 */
.sidenav-tag {
    padding-left: 18px;
}

/* 목록 */
.sidenav-list {
    list-style: none;
    margin: 0 0 8px 0;
    padding: 2px 6px 0 6px;
}

.sidenav-list li {
    padding: 2px 0;
}

/* 메뉴 아이템 */
.sidenav-list li a {
    display:flex;
    align-items:center;
    gap: 10px;

    padding: 10px 12px;
    border-radius: 12px;

    color: var(--sm-text-dim);
    text-decoration: none;
    font-size: 14px;

    border: 1px solid transparent;
    background: transparent;

    transition: background .12s ease, color .12s ease, transform .12s ease, border-color .12s ease;
}

/* 심플한 불릿 */
.sidenav-list li a::before {
    content:"";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.28);
}

/* hover: 빛 번쩍 X, 은은한 하이라이트만 */
.sidenav-list li a:hover {
    transform: translateX(1px);
    color: rgba(255,255,255,.95);
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.08);
}
.sidenav-list li a:hover::before{
    background: var(--sm-accent);
}

/* active: 현재 페이지 표시용 (li에 active 붙이면 됨) */
.sidenav-list li.active a {
    color: rgba(255,255,255,.98);
    background: rgba(255,176,32,.12);
    border-color: rgba(255,176,32,.22);
}
.sidenav-list li.active a::before {
    background: var(--sm-accent);
}

/* footer */
.sidenav-footer {
    flex-shrink: 0;
    padding: 10px 12px;
    border-top: 1px solid rgba(255,255,255,.10);
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.25));
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

/* =========================
   Pretty Scrollbar (얇고 깔끔)
   ========================= */

/* Firefox */
.sidenav-list-wrap {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,176,32,.55) rgba(255,255,255,.08);
}

/* Chrome/Edge/Safari */
.sidenav-list-wrap::-webkit-scrollbar { width: 6px; }
.sidenav-list-wrap::-webkit-scrollbar-track {
    background: rgba(255,255,255,.06);
    border-radius: 999px;
}
.sidenav-list-wrap::-webkit-scrollbar-thumb {
    background: rgba(255,176,32,.55);
    border-radius: 999px;
}
.sidenav-list-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(255,176,32,.75);
}