/* members-section.css */
.sidebar {
    display: flex;
    flex-direction: column;
    padding: 20px;
    height: 100%;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px; /* SVG 상단 영역 높이 반영 */
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 10px; /* SVG의 두 박스 사이 간격 */
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

/* 메인 푸터 (초기화 버튼 우측 정렬) */
.main-footer {
    display: flex;
    justify-content: flex-end; /* SVG 531, 421 위치 반영 */
    padding: 20px 0;
}

.header-top h2 {
    font-size: 1.25rem;
    margin: 0;
}

.member-list-container {
    flex: 1; 
    margin: 20px 0;
}

/** 멤버 리스트 5명 제한 */
.member-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1; /* 사이드바 내에서 남은 공간 차지 */
    overflow: hidden;
}

#memberList {
    /* 멤버 아이템 1개 높이(약 48px) * 5개 = 약 240px */
    max-height: 250px; 
    overflow-y: auto;
    padding-right: 5px;
}

.member-item {
    background: #F1F5F9;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 10px;
    cursor: grab;
    border: 1px solid transparent;
    transition: all 0.2s;
    font-weight: 500;
}

.member-item:hover {
    border-color: var(--primary);
    background: #EEF2FF;
    color: var(--primary);
}

.usage-guide {
    background: var(--bg-main);
    padding: 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
    border: 1px solid var(--border);
}