/* 햄버거 버튼 스타일 */
.hamburger {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    width: 32px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* 하얀색 3줄 */
.hamburger span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: white;
    border-radius: 2px;
    transition: 0.3s ease;
}

.hamburger:hover{
    background-color: inherit !important;
    color: inherit !important;
    cursor: default;
}

/* 햄버거 열림 상태 */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 사이드바 스타일 */
.sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 240px;
    height: 100vh;
    background-color: #4C4C4C;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding-top: 60px;
    transition: left 0.3s ease;
    z-index: 1000;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li a {
    display: block;
    padding: 16px 24px;
    color: white;
    text-decoration: none;
    transition: background 0.2s;
}

.sidebar ul li p {
    display: block;
    padding: 16px 24px;
    color: white;
    text-decoration: none;
    transition: background 0.2s;
}

.sidebar ul li a:hover {
    background-color: gray !important;
}

.sidebar ul li p:hover {
    background-color: gray !important;
}

/* 사이드바 열림 */
.sidebar.open {
    left: 0;
}

/* 사이드바 메뉴 항목 */
.sidebar ul li a {
    display: block;
    padding: 16px 24px;
    text-decoration: none;
    position: relative;
    transition: all 0.25s ease;
    border-left: 4px solid transparent;
}

/* 사이드바 메뉴 항목 */
.sidebar ul li p {
    display: block;
    padding: 16px 24px;
    text-decoration: none;
    position: relative;
    transition: all 0.25s ease;
    border-left: 4px solid transparent;
}

/* Hover 시 스타일 */
.sidebar ul li a:hover {
    background-color: #f0f0f0;
    color: white;
    border-left: 4px solid white;
    padding-left: 20px; /* 약간 이동하는 느낌 */
}

/* Hover 시 스타일 */
.sidebar ul li p:hover {
    background-color: #f0f0f0;
    color: white;
    border-left: 4px solid white;
    padding-left: 20px; /* 약간 이동하는 느낌 */
}


.dropdown {
    margin: 0;
    padding: 0;
}



/* 드롭다운 메뉴 */
.dropdown-menu {

    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    display: block; /* 항상 block으로 유지해야 transition이 동작 */
    z-index: 1;
    padding-top: 0;
    margin-top: 0;
}

.concentrate-sound{
    margin-top: -0.7rem;
}

.dropdown-menu.open {
    max-height: 500px; /* 충분히 큰 값 */
    opacity: 1;
}

/* 하위 항목은 flex로 구성 */
.sound-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: white;
    font-size: 0.95rem;
}

/* 하위 항목은 flex로 구성 */
.mode-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: white;
    font-size: 0.95rem;
}

.mode-option:hover{
    background: gray;
    padding-left: 5px; /* 약간 이동하는 느낌 */
}

.dropdown-menu span{
    margin-left: 30px;
}

/* hover 효과 제거 */
.sound-option:hover {
    background-color: transparent;
}

/* 스위치 토글 스타일 */
.switch {
    left: -30px;
    position: relative;
    display: inline-block;
    width: 70px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4caf50;
}

input:checked + .slider:before {
    transform: translateX(20px);
}




