/* 공통 사이드바 스타일 */
.sidebar {
    width: 250px;
    background-color: #ffffff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
    transition: width 0.3s ease;
    overflow-x: hidden;
    box-sizing: border-box;
}

.sidebar.minimized {
    width: 70px;
    padding: 30px 10px;
    align-items: center;
}

/* 사이드바 헤더 및 브랜드 로고 */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f3f4;
    width: 100%;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1a73e8;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.sidebar-brand:hover {
    opacity: 0.9;
}

.brand-sub {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-left: 2px;
}

.toggle-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #555;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.15s;
}

.toggle-btn:hover {
    background-color: #f1f3f4;
}

.sidebar.minimized .sidebar-brand {
    display: none;
}

.sidebar.minimized .sidebar-header {
    justify-content: center;
    border-bottom: none;
    margin-bottom: 5px;
    padding-bottom: 0;
}


.menu-category {
    font-size: 13px;
    font-weight: bold;
    color: #888;
    margin-top: 5px;
    margin-bottom: 2px;
    padding-left: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 10px;
    white-space: nowrap;
}

.menu-category:hover { color: #555; }

.sidebar.minimized .menu-text,
.sidebar.minimized .menu-arrow { display: none; }

.sidebar.minimized .menu-category {
    justify-content: center;
    height: 1px;
    background-color: #eee;
    padding: 0;
    margin-top: 15px;
    margin-bottom: 10px;
    pointer-events: none;
    width: 80%;
    color: transparent;
}

.menu-group {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    max-height: 500px;
}

.menu-group.collapsed { max-height: 0; }

.sidebar.minimized .menu-group {
    max-height: 500px !important;
    overflow: visible;
}

.menu-arrow { font-size: 10px; transition: transform 0.3s; }

.menu-item {
    text-decoration: none;
    color: #444;
    padding: 10px 15px 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, justify-content 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    white-space: nowrap;
}

.sidebar.minimized .menu-item {
    padding: 10px;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 5px;
}

.menu-item:hover { background-color: #f1f3f4; }
.menu-item.active { background-color: #e3eefd; color: #1a73e8; font-weight: bold; }
