/**
 * layout/sidebar.css — 슬라이드 아웃 메뉴
 */

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background-color: #fff;
    z-index: 999;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    flex-grow: 1;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s;
    height: 55px;
}

.sidebar-menu li a:hover {
    background-color: #f8f9fa;
    color: var(--danger);
}

.sidebar-menu li a i {
    width: 30px;
    text-align: center;
    margin-right: 10px;
    color: #7f8c8d;
}
