.popup-container {
    max-height: 600px;
    overflow-y: auto;
    padding: 15px;
}

.dual-layout {
    display: flex;
    gap: 20px;
}

.left-panel {
    flex: 2;
}

.right-panel {
    flex: 1;
    border-left: 2px solid #ddd;
    padding-left: 20px;
}

.pobocka-selector {
    margin-bottom: 15px;
}

.interniste-section, .externiste-section {
    margin-bottom: 20px;
}

.interniste-section h4, .externiste-section h4 {
    color: #333;
    margin-bottom: 10px;
}

.user-list {
    list-style: none;
    padding: 10px;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.user-item {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.user-item:last-child {
    border-bottom: none;
}

.user-item label {
    margin-left: 8px;
    cursor: pointer;
}

.selected-header h4 {
    margin: 0 0 10px 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.selected-count {
    background: #f0f8ff;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #0066cc;
    text-align: center;
}

#selectedUsersList {
    list-style: none;
    padding: 0;
    margin: 0;
}

#selectedUsersList li.selected-user-item {
    display: flex;
    align-items: center;
    padding: 8px;
    margin: 3px 0;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

#selectedUsersList li.empty-message {
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 4px;
}

.selected-user-item input[type="checkbox"] {
    margin-right: 8px;
}

.selected-user-item .user-name {
    flex: 1;
    font-size: 14px;
}

.remove-user {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    margin-left: 8px;
}

.remove-user:hover {
    background: #c82333;
}

.popup-actions {
    margin-top: 20px;
    text-align: center;
}

.popup-actions button {
    margin: 0 10px;
}